| Electronic Components Datasheet Search |
|
HTG2190 Datasheet(PDF) 29 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HTG2190 Datasheet(HTML) 29 Page - Holtek Semiconductor Inc |
|
29 / 50 page ![]() ;* use master mode ;* serial clock=F1/2 ;* serial equ 2Ah ;serialdatabuffer serc equ 29h ;serial control register data equ 51h ; org 004h jmp serial_op ;serial ; ; serialap: ;serial function testing (PA=16h) mov a,55h mov data,a mov serial,a ;write data to serial register set pbc ;set port B I/P serail_I: clr pbc.5 ;serial clock output mov a,00000111b ;SCLKX=F1/2 mov serc,a ;latch data (h->1) wait: sz pb.2 ; jmp wait set EEI clr serc.0 ;trigger the serial interface start ret serial_op: mov a,data ;reload data to register mov serial,a clr serc.0 ;enable serial ret HTG2190 Rev. 1.20 29 July 5, 2002 When the output of the 8 bits data from D0~D7 is com- pleted, the interrupt factor flag is set to ²1² and interrupt is generated. Moreover, the interrupt can be masked by the interrupt mask register INTC. Note, however, that regardless of the setting of the inter- rupt mask register, the interrupt factor flag is set to ²1² after output of the 8 bits data. Serial data input By writing ²0² to SERC.0, the serial data is input from the SIN terminal, synchronizes with the synchronous clock, and is sequentially read in the 8 bits shift register. The input data will be fetched at the rising edge (.1= ²0²) of SCLK. When the input of the 8 bits data from D0~D7 is completed, the interrupt factor flag EIF is set to ²1² and interrupt is generated. Moreover, the interrupt can be masked by the interrupt mask register SERDATA. Note, however, that regardless of the setting of the inter- rupt mask register, the interrupt factor flag is set to ²1² after input of the 8 bits data. |
|
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 |