The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.    


Datasheet Search Engine   
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)

 

 

Documentation External Memory Application Board Authors ANP, 07.0


Datasheet Thumbnail

  

Download PDF



Top Searches for this datasheet



Documentation 10108x Evaluation Boards
Documentation External Memory Application Board
Authors ANP, 07.01.199
Page 1/18
Documentation 10108x Evaluation Boards
PCBs
General information. purpose evaluation boards develop Software Melexis microcontroller 10108x. shows sample integrated system, including microprocessor, RAM, ROM, analog digital periphery, that could implemented single chip. evaluation system composed External Memory Board (Pic.1) Application Board (Pic.
Sub-D9 Connector
Reset disconnect from supply
Supply Connector 12V.14V Reset line
External Memory Board
Reset
Key0 Key1
34pin Connector
Application
34-pin flat cable
Test Mode
PMOD
PMOD
HallB
SO24 Socket 10108E
Switches
cable port
Picture Functional diagram External Memory Board
Authors ANP, 07.01.199
Page 2/18
Application Board
Crash Barrier EPROM Emulator
40-pin flat cable
DIL40 Socket Connect
Adress Data
CLCC68 Socket 10108F
Adress Data
PLCC68 Socket 10108F
DIL28 Socket 10108E
Documentation 10108x Evaluation Boards
Picture Schematic Application Board demonstration purposes
Application Board
BUZ71
Halogen lamp
34pin Connector
Potentio meter
Relay
Relay
green yellow
green yellow
indicator
Hall sensors supplied active indicator US1881 US1881
Buttons
Picture Silk screen Application Board
Authors ANP, 07.01.199
Page 3/18
Documentation 10108x Evaluation Boards
Idea evaluation system have single standing boards: standart board (External Memory Board) used possible applications. consits only 10108x with sockets different pinouts packages, configuration switches interface connectors ROM- IN-CIRCUIT- emulator side Application Board other side. customized board (Application Board) which developed every user every kind application. connection between these boards rather simple, application signals (exempted configuration) routed from External Memory Board Application Board. demonstration Application Board provided together with software better understanding 10108x developemt system will descriped later.
Boards description following sections described components PCBs. 1.2.1 External Memory Board components PCB's requires only voltage (+12.+14 VDC). will connect External Memory Board (supply connector). external memory work ROM- IN-CIRCUIT-emulator connected socket. reset line connected single connection point near Reset button. Instead emulator also commercial EPROM like M27C1024 connected. external Memory work 10108F CLCC68 PLCC68 package needed. case application runs OTP-memory, 10108E 10108F only necessary. Application Board supplied through 34-pin connector between boards. RESET Resets always active done following possibilities: There main switch board which able disconnected from power supply, which resets components boards. This possibility used, chip external memory mode. chip reseted that case supply. Working external memory mode gives following additional possibilities: case software send Emulator, boards reseted automatically. Reset reset button emulator. Reset reset button 10108F.
Authors ANP, 07.01.199
Page 4/18
Documentation 10108x Evaluation Boards
REMAINING CONFIGURATION Following switches/input pins high active: TESTMODE Chip works normal User mode. This mode always recomended work Chip works Melexis Testmode. This mode will documented. this mode also possible communicate build Monitor with 10108x, programm memory, have access internal MELEXIS test ports.
PMODE0/PMODE1: These control signals select suitable working mode: PMODE1 EXTHALLB external Hallsensors active internal Hallsensors active PMODE0 MODE Internal Mode Internal External Memory
level switch. switch coupled protection resistor PWM. Tristate MODE Possibility start serial ROM, MELEXIS test mode needed Possibility start internal Monitor, MELEXIS test mode needed normal user mode, left floating
Authors ANP, 07.01.199
Page 5/18
Documentation 10108x Evaluation Boards
1.2.2 Application Board Application Board only done demonstration purposes. customised every user application. Below definitions only valid demonstration board with demonstration software. Following buttons/key pins high active. Following buttons/key pins active. Following functional description valid software "Demo3". Pressing Button will switch Relay toggles green yellow LED. yellow indicates "on", green indicates "off". Pressing Button will switch Relay toggles green yellow LED. yellow indicates "on", green indicates "off". Pressing button will switch Poti supplied read (the ADC) between 0%.100%. value (8Bit) manipulated 7Bit) copied register (7bit). "PWM" controlled directly bulb controlled external power BUZ71 PWM. power bulb controled poti. Pressing activating internal external hall sensors depending EXTHALLB switch External Memory Board. case external halls selected, they supplied PS1. status observed LED. Once halls working, their status copied Relays manipulating halls external magnetic field will change status Relays. Attention drawn, that case internal halls ferromagnetic material neighborhood chip order latch behaviour internal halls correctly. external halls Melexis US1881 used.
Authors ANP, 07.01.199
Page 6/18
Documentation 10108x Evaluation Boards
Pressing will turn selected components "off" state like after Reset. defined input, that's there switch. defined output. programm (Demo3) shows internal timer overflow interrupt, every time occurs, status inverted. timer runing lowest resolution. interface connector External Memory Board:
Signal SUPPLY SUPPLY SUPPLY SUPPLY SUPPLY SUPPLY SUPPLY SUPPLY KEY0 KEY1 KEY2 KEY3 KEY4 KEY5 KEY6 KEY7
Authors ANP, 07.01.199 Page 7/18
Documentation 10108x Evaluation Boards
10108x Software Demonstration Programs
Introduction demonstration program, described hereafter, illustrate basic principles software development 10108x using various features. Software development using Assembler
Source code file Include file
Assembler
Object file
Other object file
Library
Linker
Final CODE file
Send used Emulator
Send used INCIRCUIT Emulator
file gen.
Final file
gen.
Send MLX-Programmer OTPProgrammation
Final Mask
Picture Software flow using Assembler
description tools themselves part this document. tools descriped detail their documentation.
Authors ANP, 07.01.199
Page 8/18
Documentation 10108x Evaluation Boards
They called following batch files, which will handle necessary settings correctly: assembler: linker: Hex-file generator: AS.BAT filename_without_extention LYN.BAT filename_without_extention OBSEND.BAT filename_without_extention
Assembler files DEMO3.ASM OTPMAP.ASM INT.ASM
DEMO3.ASM Assembler source code, OTPMAP.ASM INT.ASM will included. source codes given hereafter. 2.3.1 OTPMAP.ASM This file declares memory segments areas, defines hardware page addresses, etc.
.NOLIST 10108xx Author Date 20.11.1998 Following segments actually used: SEGMENT word 3FFC-3FFF 'Unused' Unused Reset address SEGMENT word FFA0-FFA7 'EEpromErr' EEprom error SEGMENT word FFA8-FFAF 'RdyTmOut' time-out
Following segments used: SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT pages ASSUME ASSUME ASSUME ASSUME SEGMENT SEGMENT SEGMENT SEGMENT Devices
Version Authors ANP, 07.01.199 Page 9/18
word word word word word word word word word word word word word word
3FF8-3FFB 3FF0-3FF7 7FF0-7FF7 FFB0-FFB7 FFB8-FFBF FFC0-FFC7 FFC8-FFCF FFD0-FFD7 FFD8-FFDF FFE0-FFE7 FFE8-FFEF FFF0-FFF7 FFF8-FFFD FFFE-FFFF
'ElexReset' 'ElexIromInt' 'ElexSromInt' 'LoadDump' '7V' 'TimerComp1' 'TimerComp2' 'TimerCapt' 'TimerOfl' 'EepromRdy' 'Key' 'WatchDog' 'Reset' 'ProgError'
Interrupt internal Interrupt serial LoadDump Threshold Timer compare Timer compare Timer capture Timer overflow EEPROM ready Interrupt Interrupt Watch Reset User Reset Access Error
FarPage0: FarPage1: FarPage2: FarPage3: word word word word
03F00h 07F00h 0BF00h 0FF00h 3F00-3FFF 7F00-7FFF BF00-BFFF FF00-FFFF 'FarPage0' 'FarPage1' 'FarPage2' 'FarPage3'
Documentation 10108x Evaluation Boards
ASSUME DPage: 0000h ASSUME IOPage: 2000h SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT .LIST byte byte byte word word word word word word word 0000-00FF 1000-10FF 2000-201F 3C00-3FEF 4000-407F 4080-40FF 4100-41FF 4200-7FFF 8000-BFFF E000-FFFF 'Ram' 'Eeprom' 'Io' 'Monitor' 'SerialInA' 'SerialInB' 'SerialOut' 'SerialRom' 'RelocatedRom' 'Rom'
Monitor area External Input port area External Input port area External Output port area External Serial Internal relocated
2.3.2 INT.ASM This file defines interrupt jumps.
-Interrupts SEGMENT 'ElexReset' Reset Elex-Monitor jumpf Reset SEGMENT 'ElexIromInt' Interrupt internal SEGMENT 'ElexSromInt' Interrupt serial SEGMENT 'LoadDump' LoadDump SEGMENT '7V' Threshold SEGMENT 'TimerComp1' Timer compare SEGMENT 'TimerComp2' Timer compare SEGMENT 'TimerCapt' Timer capture SEGMENT 'TimerOfl' Timer overflow msw,0 jumpf IOFL SEGMENT 'EepromRdy' EEPROM ready Interrupt SEGMENT 'Key' Interrupt SEGMENT 'WatchDog' Watch Reset SEGMENT 'Reset' User Reset jumpf Reset SEGMENT 'ProgError' Access Error
.LIST
2.3.3 DEMO3.ASM This source code demonstration application assembler. Ports descriped documentation 10108x.
RX16000C Definitions This demonstration runs MELEXIS Application demoboard 10108x Written Date: 11.12.1998 Tabfile: RX16000.C CPU-File: 16201.CPU #INCLUDE "otpmap.asm" #INCLUDE "int.asm" Version Authors ANP, 07.01.199 Page 10/18
Documentation 10108x Evaluation Boards
SEGMENT 'Io' WORD0: PORT0 DS.B PORT1 DS.B WORD2: PORT2 DS.B PORT3 DS.B WORD4: PORT4 DS.B PORT5 DS.B WORD6: PORT6 DS.B PORT7 DS.B WORD8: PORT8 DS.B PORT9 DS.B WORDA: PORTA DS.B PORTB DS.B WORDC: PORTC DS.B PORTD DS.B WORDE: PORTE DS.B PORTF DS.B WORD10: PORT10 DS.B PORT11 DS.B WORD12: PORT12 DS.B PORT13 DS.B WORD14: PORT14 DS.B PORT15 DS.B WORD16: PORT16 DS.B PORT17 DS.B WORD18: PORT18 DS.B PORT19 DS.B Outputs ;Begin define ports WORD0 -#DEFINE OIB_PWM io:PORT0.2 ;PWM digital input/output #DEFINE OIB_PS1 io:PORT0.5 ;PS1 input port bit5/PS1 outputs voltage #DEFINE OIB_PS2 io:PORT0.6 ;PS2 input port bit6/PS2 outputs voltage #DEFINE io:PORT1.0 ;EEPROM mode #DEFINE io:PORT1.1 ;EEPROM mode WORD2 -#DEFINE O_PR1 io:PORT2.0 ;Relay1 off/on #DEFINE O_PR2 io:PORT2.1 ;Relay2 off/on #DEFINE CONTRV0 io:PORT2.3 ;DAC Voltage control, 5.4V, #DEFINE CONTRV1 io:PORT2.4 ;DAC Voltage control, 5.4V, #DEFINE CONTRV2 io:PORT2.5 ;DAC Voltage control, 5.4V, #DEFINE CKTEST io:PORT2.6 ;Software Test Clock #DEFINE DRTEST io:PORT2.7 ;Timing Test Data Reset #DEFINE #DEFINE #DEFINE #DEFINE #DEFINE #DEFINE #DEFINE ENTCMPI1 ENTCMPI2 ENEDGEI ENOVFLI ENLDI EN7VI ENEEI io:PORT3.0 io:PORT3.1 io:PORT3.2 io:PORT3.3 io:PORT3.4 io:PORT3.5 io:PORT3.6 ;Disable/Enable ;Disable/Enable ;Disable/Enable ;Disable/Enable ;Disable/Enable ;Disable/Enable ;Disable/Enable Timer compare interrupt Timer compare interrupt Edge detect interrupt Counter overflow interrupt Load dump interrupt interrupt EEPROM write interrupt
WORD4 -#DEFINE OIB_P_B0 io:PORT4.0 ;Pin KEY0 Port input/output #DEFINE OIB_P_B1 io:PORT4.1 ;Pin KEY1 Port input/output #DEFINE OIB_P_B2 io:PORT4.2 ;Pin KEY2 Port input/output #DEFINE OIB_P_B3 io:PORT4.3 ;Pin KEY3 Port input/output #DEFINE OIB_P_B4 io:PORT4.4 ;Pin KEY4 Port input/output #DEFINE OIB_P_B5 io:PORT4.5 ;Pin KEY5 Port input/output #DEFINE OIB_P_B6 io:PORT4.6 ;Pin KEY6 Port input/output #DEFINE OIB_P_B7 io:PORT4.7 ;Pin KEY7 Port input/output #DEFINE O_P_B0 io:PORT5.0 ;Pin KEY0 Port data output #DEFINE O_P_B1 io:PORT5.1 ;Pin KEY1 Port data output #DEFINE O_P_B2 io:PORT5.2 ;Pin KEY2 Port data output #DEFINE O_P_B3 io:PORT5.3 ;Pin KEY3 Port data output #DEFINE O_P_B4 io:PORT5.4 ;Pin KEY4 Port data output Version Authors ANP, 07.01.199 Page 11/18
Documentation 10108x Evaluation Boards
#DEFINE O_P_B5 #DEFINE O_P_B6 #DEFINE O_P_B7 io:PORT5.5 io:PORT5.6 io:PORT5.7 ;Pin KEY5 Port data output ;Pin KEY6 Port data output ;Pin KEY7 Port data output
WORD6 Word6 changeable WORD8 -#DEFINE io:PORT8.0 ;Idle ADC/Start conversion request #DEFINE SEL2VREFB io:PORT8.1 ;ADC uses internal Ref./external Ref. #DEFINE SELADC0 io:PORT8.2 ;Analog #DEFINE SELADC1 io:PORT8.3 ;000 Internal power supply, Temperatur sensor, ;AD1, #DEFINE SELADC2 io:PORT8.4 ;100 PS1, PS2, PR1, #DEFINE io:PORT8.5 rising edge will ack.wotchdog WDSETF high #DEFINE R_CBFB io:PORT8.6 rising edge sets CBFB flag #DEFINE R_WBFB io:PORT8.7 rising edge sets WBFB flag #DEFINE #DEFINE #DEFINE #DEFINE #DEFINE #DEFINE #DEFINE EDSEL TC1CPTDIR ENCM VEE1 VEE2 io:PORT9.0 io:PORT9.1 io:PORT9.2 io:PORT9.3 io:PORT9.4 io:PORT9.5 io:PORT9.6 ;Falling/Rising edge selection capture ;TC1 input capture/direct input capture ;Disable/Enable clock monitor control ;Disable/Enable EEPROM block erase ;Disable/Enable EEPROM block write ;Read Voltage level ;Read Voltage level
WORDA -WordA changeable WORDC -WordC changeable WORDE -WordE changeable WORD10 -Word10 changeable WORD12 -Word12 changeable Inputs WORD0 -#DEFINE EQUAL1 io:PORT0.0 ;Timer Compare equality found/found #DEFINE EQUAL2 io:PORT0.1 ;Timer Compare found/found #DEFINE io:PORT0.2 ;Capture done/done #DEFINE io:PORT0.3 Timer overflow/Timer overflow #DEFINE 7VTHRESHOLD io:PORT0.4 threshold found/found #DEFINE LDTHRESHOLD io:PORT0.5 ;Load Dump threshold found/found #DEFINE KEYPRESSED io:PORT0.6 pressed/one more keys pressed #DEFINE O_PWM io:PORT0.7 ;PWM output LOW/PWM output HIGH
#DEFINE I_TC1 io:PORT1.0 ;Data #DEFINE I_TC2 io:PORT1.1 ;Data #DEFINE I_PWM io:PORT1.2 ;PWM output used digital input OIB_PWM cleared) #DEFINE I_AD1 io:PORT1.3 ;Data from external #DEFINE I_AD2 io:PORT1.4 ;Data from external #DEFINE I_PS1 io:PORT1.5 ;Data from external #DEFINE I_PS2 io:PORT1.6 ;Data from external WORD2 -#DEFINE ADC0 io:PORT2.0 ;ADC input #DEFINE ADC1 io:PORT2.1 ;ADC input #DEFINE ADC2 io:PORT2.2 ;ADC input #DEFINE ADC3 io:PORT2.3 ;ADC input #DEFINE ADC4 io:PORT2.4 ;ADC input #DEFINE ADC5 io:PORT2.5 ;ADC input #DEFINE ADC6 io:PORT2.6 ;ADC input #DEFINE ADC7 io:PORT2.7 ;ADC input #DEFINE LDIF io:PORT3.4 ;Load Dump memory #DEFINE 7VIF io:PORT3.5 treshold memory #DEFINE COMPOUTB io:PORT3.6 ;ADC Comparator output (inverted) #DEFINE CMRES io:PORT3.7 ;Clock monitor error detection (valid even ENCM low) WORD4 -#DEFINE I_P_B0 io:PORT4.0 ;Undebounced Port input #DEFINE I_P_B1 io:PORT4.1 ;Undebounced Port input #DEFINE I_P_B2 io:PORT4.2 ;Undebounced Port input Version Authors ANP, 07.01.199 Page 12/18
Documentation 10108x Evaluation Boards
#DEFINE #DEFINE #DEFINE #DEFINE #DEFINE #DEFINE #DEFINE #DEFINE #DEFINE #DEFINE #DEFINE #DEFINE #DEFINE I_P_DB_B0 I_P_DB_B1 I_P_DB_B2 I_P_DB_B3 I_P_DB_B4 I_P_DB_B5 I_P_DB_B6 I_P_DB_B7 io:PORT5.0 io:PORT5.1 io:PORT5.2 io:PORT5.3 io:PORT5.4 io:PORT5.5 io:PORT5.6 io:PORT5.7 ;1ms ;1ms ;1ms ;1ms ;1ms ;1ms ;1ms ;1ms debounced debounced debounced debounced debounced debounced debounced debounced Port Port Port Port Port Port Port Port input input input input input input input input I_P_B3 I_P_B4 I_P_B5 I_P_B6 I_P_B7 io:PORT4.3 io:PORT4.4 io:PORT4.5 io:PORT4.6 io:PORT4.7 ;Undebounced ;Undebounced ;Undebounced ;Undebounced ;Undebounced Port Port Port Port Port input input input input input
WORD6 Word6 existing WORD8 -#DEFINE io:PORT8.0 ;End Conversion: completed #DEFINE TEST1 io:PORT8.1 ;00:Normal mode,01 Test mode int. oscillator, #DEFINE TEST2 io:PORT8.2 ;10:Test mode ext. oscillator,11:not allowed #DEFINE EEBUSY io:PORT8.3 ;EEPROM busy/busy (write erase) #DEFINE CPTF io:PORT8.4 ;Capture done/done #DEFINE WDSETF io:PORT8.5 ;Watchdog window opened/opened #DEFINE CBFB io:PORT8.6 cold boot occured/No reset occured #DEFINE WBFB io:PORT8.7 warm cold boot occured/No reset occured #DEFINE LDPI io:PORT9.0 pending interrupt/Pending interrupt #DEFINE 7VPI io:PORT9.1 pending interrupt/Pending interrupt #DEFINE TCOMP1PI io:PORT9.2 pending interrupt/Pending interrupt #DEFINE TCOMP2PI io:PORT9.3 pending interrupt/Pending interrupt #DEFINE TCAPTPI io:PORT9.4 pending interrupt/Pending interrupt #DEFINE TOVFPI io:PORT9.5 pending interrupt/Pending interrupt #DEFINE EERDYPI io:PORT9.6 pending interrupt/Pending interrupt #DEFINE KEYPI io:PORT9.7 pending interrupt/Pending interrupt WORDA -#DEFINE CPT0 io:PORTA.0 ;Capture register #DEFINE CPT1 io:PORTA.1 ;Capture register #DEFINE CPT2 io:PORTA.2 ;Capture register #DEFINE CPT3 io:PORTA.3 ;Capture register #DEFINE CPT4 io:PORTA.4 ;Capture register #DEFINE CPT5 io:PORTA.5 ;Capture register #DEFINE CPT6 io:PORTA.6 ;Capture register #DEFINE CPT7 io:PORTA.7 ;Capture register #DEFINE CPT8 io:PORTB.0 ;Capture register #DEFINE CPT9 io:PORTB.1 ;Capture register #DEFINE CPT10 io:PORTB.2 ;Capture register #DEFINE CPT11 io:PORTB.3 ;Capture register #DEFINE CPT12 io:PORTB.4 ;Capture register #DEFINE CPT13 io:PORTB.5 ;Capture register #DEFINE CPT14 io:PORTB.6 ;Capture register #DEFINE CPT15 io:PORTB.7 ;Capture register WORDC -#DEFINE CNT0 io:PORTC.0 ;Free running counter #DEFINE CNT1 io:PORTC.1 ;Free running counter #DEFINE CNT2 io:PORTC.2 ;Free running counter #DEFINE CNT3 io:PORTC.3 ;Free running counter #DEFINE CNT4 io:PORTC.4 ;Free running counter #DEFINE CNT5 io:PORTC.5 ;Free running counter #DEFINE CNT6 io:PORTC.6 ;Free running counter #DEFINE CNT7 io:PORTC.7 ;Free running counter #DEFINE CNT8 io:PORTD.0 ;Free running counter #DEFINE CNT9 io:PORTD.1 ;Free running counter #DEFINE CNT10 io:PORTD.2 ;Free running counter #DEFINE CNT11 io:PORTD.3 ;Free running counter #DEFINE CNT12 io:PORTD.4 ;Free running counter #DEFINE CNT13 io:PORTD.5 ;Free running counter #DEFINE CNT14 io:PORTD.6 ;Free running counter #DEFINE CNT15 io:PORTD.7 ;Free running counter DEFINE PORTS #DEFINE STACK 0080h #DEFINE STATUS dpage:0008h Byte Version Authors ANP, 07.01.199 Page 13/18
Documentation 10108x Evaluation Boards
#DEFINE #DEFINE #DEFINE #DEFINE #DEFINE SPR1 SPR2 SPWM SPS1 SPS2 STATUS.0 STATUS.1 STATUS.2 STATUS.3 STATUS.4 status byte devices
Macros SEGMENT 'Rom' AckWd MACRO z,WDSETF AWD,z MEND WaitLoop MACRO LOCAL Loop push y,#00FFFh Loop: AckWd y,#1 Loop MEND Interrupts .IOFL: al,io:PORT4 read KEYs order status KEY7 al,#080h mask KEY7 invert io:PORT5,al write inverted information KEY7 Main prog Reset: Main: al,#050h io:PORTE,al trim oscillator little a,#0001h io:WORD10,a timer resulution a,#0200h io:WORD18,a configure tresholds halls setb SEL2VREFB with reference setb SELADC0 select input, poti connected setb SELADC1 setb OIB_P_B7 KEY7 output setp setb ENOVFLI enable overflow funny flashing KEY7 al,#0h STATUS,al devices RESET WaitLoop MainLoop: Pr1: AckWd z,I_P_DB_B2 KEY2 switched PCB, pressed setb O_PR1 with KEY2 switch setb SPR1 change status PR1, need Pr2: z,I_P_DB_B3 KEY3 switched PCB, pressed setb O_PR2 with KEY3 switch setb SPR2 change status PR2, need Pwm: z,I_P_DB_B4 KEY4 switched PCB, pressed Pwm1 setb OIB_PWM pressing KEY4 will switch setb SPWM change status PWM, need setb OIB_PS2 pressing KEY4 will switch setb SPS2 change status PS2, need Pwm1: WaitLoop setteling time setb start conversion Waitadc: z,EOC Waitadc wait till finished Version Authors ANP, 07.01.199 Page 14/18
Documentation 10108x Evaluation Boards
al,io:PORT2 al,#7Fh io:PORTF,al Hall: z,I_P_DB_B5 Hall1 setb OIB_PS1 setb SPS1 WaitLoop Hall1: Off: z,I_P_DB_B6 clrb O_PR1 clrb SPR1 clrb O_PR2 clrb SPR2 clrb OIB_PWM clrb SPWM clrb OIB_PS2 clrb SPS2 clrb OIB_PS1 clrb SPS1 End: jump MainLoop jump beginning main prog KEY6 switched VDD5 PCB, pressed pressing clear pressing clear pressing clear pressing clear pressing KEY5 will switch status flag KEY5 will switch status flag KEY5 will switch status flag KEY5 will switch status flag KEY5 will switch z,SPS1 z,I_TC1 O_PR1,z z,I_TC2 O_PR2,z case hall sensors active PS1=1, copy Hall1 PR1, HALL2, KEY5 switched PCB, pressed switch Halls supply change status PS1, need setteling time Halls read ADC, bits remove last only bits clrb load manipulated value
Authors ANP, 07.01.199
Page 15/18
Documentation 10108x Evaluation Boards
Software development using
Source code file Include file Library
C-Compiler
Object file
Other object file
Library
Linker
Final CODE file
Send used Emulator
Send used INCIRCUIT Emulator
file gen.
Final file
gen.
Send MLX-Programmer OTPProgrammation
Final Mask
Picture Software flow using
description C-compiler itself part this document. descriped detail documentation. seen that fits completely existing envoirement. C-compiler provides features known from standart ansi-C. C-compiler called following batch file: CX.BAT filename_without_extention
settings additional options handled outomatically. This small batch calls Ccompiler links generated C-code with startup interrupt code final CODE file. Additional final file generated too.
Authors ANP, 07.01.199
Page 16/18
Documentation 10108x Evaluation Boards
Files CRT.ASM DEMO3.C
2.5.1 CRT.ASM This file includes OTPMAP.ASM INT.ASM. assembled CRT.OBJ. provides startup interrupt code C-programm DEMO3.C will later linked together with DEMO3.C final CODE file.
rx16000c STARTUP INTERRUPT CODE RX16000 Copyright 1998 Melexis Written 1999 PUBLIC _exit, _stext EXTERN _main, _iofl #include "otpmap.asm" #include "int.asm" STACK Memory interrupt mapping Interrupt definition Define stack start address 'Rom' segments 'text' 'const' 'Ram' segments 'bsct' 'data' 'bss' 'const' Define segment compiler 'bss' 'text' 'data' 'bsct' 'text' Simple startup code x,#STACK _main _exit initialize stack pointer execute main stay here
SEGMENT CONTAINS CONTAINS SEGMENT CONTAINS CONTAINS CONTAINS SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT SEGMENT Reset: _stext: call _exit:
2.5.2 DEMO3.C This source code demonstration application
This demonstration runs MELEXIS Application demoboard 10108 Written 1999 #include #include #include #include "io.h" "var.h" "bit.h" "macros.h"
@interrupt void iofl(void) Version Authors ANP, 07.01.199 Page 17/18
Documentation 10108x Evaluation Boards
PORT5 PORT4^0x80; KEY7 void main() PORTE 0x50; WORD10 0x1; WORD18 0x200; setb(SEL2VREFB); setb(SELADC0); setb(SELADC1); setb(OIB_P_B7); Setp(4); setb(ENOVFLI); STATUS WaitLoop; for(;;) AckWd; (bclr(I_P_DB_B2)) setb(O_PR1); setb(SPR1); (bclr(I_P_DB_B3)) setb(O_PR2); setb(SPR2); (bclr(I_P_DB_B4)) setb(OIB_PWM); setb(SPWM); setb(OIB_PS2); setb(SPS2); WaitLoop; setb(SOC); while (bclr(EOC)); read KEYs order status KEY7 mask KEY7 invert write inverted information
trim oscillator little timer resulution configure tresholds halls with reference select input, poti connected
KEY7 output enable overflow funny flashing KEY7 devices RESET
KEY2 switched PCB, pressed with KEY2 switch change status PR1, need KEY3 switched PCB, pressed with KEY3 switch change status PR2, need KEY4 switched PCB, pressed pressing KEY4 change pressing KEY4 change will switch status PWM, will switch status PS2, need need
setteling time start conversion wait till finished
read ADC, bits remove last only bits PORTF (PORT2 0x7f; load manipulated value (bset(I_P_DB_B5)) setb(OIB_PS1); setb(SPS1); WaitLoop; (bset(SPS1)) movb(O_PR1,I_TC1); movb(O_PR2,I_TC2); (bset(I_P_DB_B6)) clrb(O_PR1); clrb(SPR1); clrb(O_PR2); clrb(SPR2); clrb(OIB_PWM); clrb(SPWM); clrb(OIB_PS2); clrb(SPS2); clrb(OIB_PS1); clrb(SPS1); KEY5 switched PCB, pressed switch Halls supply change status PS1, need setteling time Halls case hall sensors active
PS1=1, copy Hall1 PR1, HALL2, KEY6 switched VDD5 PCB, pressed pressing clear pressing clear pressing clear pressing clear pressing KEY5 will switch status flag KEY5 will switch status flag KEY5 will switch status flag KEY5 will switch status flag KEY5 will switch
Authors ANP, 07.01.199
Page 18/18

Other recent searches


VLCF5028-2 - VLCF5028-2   VLCF5028-2 Datasheet
TPD1024AS - TPD1024AS   TPD1024AS Datasheet
SIGC156T60SNR2C - SIGC156T60SNR2C   SIGC156T60SNR2C Datasheet
ROS-209-319+ - ROS-209-319+   ROS-209-319+ Datasheet
PT4481--48V - PT4481--48V   PT4481--48V Datasheet
MAX402 - MAX402   MAX402 Datasheet
MAX403 - MAX403   MAX403 Datasheet
MAX438 - MAX438   MAX438 Datasheet
MAX439 - MAX439   MAX439 Datasheet
MAX402 - MAX402   MAX402 Datasheet
MAX438 - MAX438   MAX438 Datasheet
MAX403 - MAX403   MAX403 Datasheet
MAX439 - MAX439   MAX439 Datasheet
IS43LR32100C - IS43LR32100C   IS43LR32100C Datasheet
G2930-33 - G2930-33   G2930-33 Datasheet

 

Privacy Policy | Disclaimer
© 2012 Datasheet Archive