| Electronic Components Datasheet Search |
|
AN1320 Datasheet(PDF) 16 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN1320 Datasheet(HTML) 16 Page - STMicroelectronics |
|
16 / 20 page ![]() AN1320 APPLICATION NOTE 16/20 IgnStart ; *** Ignition sequence clr Step ; Reset lookup table index Ignition ldi A,40H ; Load Duty-Cycle value from look-up table add A,Step ld X,A ld A,(X) ld ARCP,A ; on comparator value ldi a,TignTick ; Load tick counter ld x,a ldi a,TignRepeat ; Load repetition time ld y,a call Wait inc Step ; Update step counter ld A,Step cpi A,40h ; if last value in table jrz Ignited ; exit nop ; else next value nop jp Ignition Ignited inc NrTent ldi a,GenTick ; Load tick counter ld x,a ldi a,GenRepeat ; Load repetition time ld y,a call Wait jrr 2,DRC,LampOn ; if lamp ignited (PC2=0) go ahead ld A,NrTent cpi A,MAX_TENT ; if trial number overflows, stop jrz GotoStop jp PreHeat ; else retry GotoStop jp StopIt LampOn ; *** System working, set interrupt on PortC, pin 2 and 3 clr IOR clr DDRC ldi OPRC,08H ; PC3 (No Lamp) INT pull-up clr DRC ldi IOR,30h ; enable global int, rising edge ; *** Internal timer activation for A/D tracking res 3,TSCR ; Stop Timer 1 set 6,TSCR ; Enable interrupt ldi a,TadTick ; Load tick counter ld TCR,a ldi a,TadRepeat ; Load repetition time ld Repeat,a set 3,TSCR ; Start Timer ; New Data Rom Window Configuration ldi DRWR,3CH ; = (0F00H >> 6) |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |