| 전자부품 데이터시트 검색엔진 |
|
AN594 데이터시트(PDF) 20 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN594 데이터시트(HTML) 20 Page - STMicroelectronics |
|
20 / 28 page ![]() Direct LCD Drive 20/28 ANNEX 2: Software of the ST6265x based application (Continued) ;************************************************************************ ;* INTERRUPT VECTORS ;************************************************************************ .org 0ff0h it_tim1 jp LCD_LP ; timer1 interrupt synchronizes LCD drive it_tim2 nop ; it. timer2 reti it_pc_spi nop ; it. port c & SPI reti it_pa_pb nop ; it. port a & port b reti nop nop nop nop nmi nop reti res jp START ;*********************************************************************** ;* MAIN PROGRAM EXAMPLE ;*********************************************************************** .org 0880h START reti ; end of reset interrupt call INIT MAIN call DUTY0 jp MAIN ;*********************************************************************** ;* END OF MAIN PROGRAM ;*********************************************************************** ;*********************************************************************** ;* MAIN INITIALIZATION SUBROUTINE ;*********************************************************************** INIT ldi wdt,00000111b ; watchdog initialization ldi eecr,040h ; EEPROM in stand by for power saving ldi oscr,008h ; CKOUT output disabled for power saving ldi pbdir,00110000b ; b0 & b1 is common :Hi/Impedance Input ldi pbopt,00110000b ; b2 &b3 is input for +/- push button ldi pbbuf,00000011b ; pb buffer byte load ldi pb,00000011b ; b6,b7 in input with pull up ldi padir,0ffh ; a0 to a7 in push pull output ldi paopt,0ffh ; pa = driver of LCD segments ldi pa,00h ; output is zero ldi pcdir,00h ; ldi pcopt,00h ; c0 -> c7 inputs with pull up ldi pc,00h ; ldi drwr,3ch ; data/rom window origin clr LCDCTL ; clear LCD phase sequence control ldi ior , 010h ; interrupt validation ldi tcr1 ,009h ; load timer1 for LCD phase generation ldi tscr1,07fh ; timer initialization clr duty0 ldi wdt, 00000111b ; hello watchdog |
|
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |