Electronic Components Datasheet Search |
|
HT56R22 Datasheet(PDF) 73 Page - Holtek Semiconductor Inc |
|
HT56R22 Datasheet(HTML) 73 Page - Holtek Semiconductor Inc |
73 / 127 page HT56R22/HT56R23/HT56R24/HT56R25/HT56R26 Rev. 1.30 73 December 26, 2014 There are several configuration options associated with the I 2C interface. One of these is to enable the function which selects the SIM pins rather than normal I/O pins. Note that if the configuration option does not select the SIM function then the SIMEN bit in the SIMCTL0 register will have no effect. A configuration option exists to allow a clock other than the system clock to drive the I 2C interface. Another configuration option determines the debounce time of the I 2C inter- face. This uses the internal clock to in effect add a debounce time to the external clock to reduce the pos- sibility of glitches on the clock line causing erroneous operation. The debounce time, if selected, can be chosen to be either 1 or 2 system clocks. SIM Function SIM function SIM interface or SEG pins I 2C clock I 2C runs without internal clock Disable/Enable I 2C debounce No debounce, 1 system clock; 2 system clocks I 2C Interface Configuration Options · I 2C Registers There are three control registers associated with the I 2C bus, SIMCTL0, SIMCTL1 and SIMAR and one data register, SIMDR. The SIMDR register, which is shown in the above SPI section, is used to store the data being transmitted and received on the I 2C bus. Before the microcontroller writes data to the I 2C bus, the actual data to be transmitted must be placed in the SIMDR register. After the data is received from the I 2C bus, the microcontroller can read it from the SIMDR register. Any transmission or reception of data from the I 2C bus must be made via the SIMDR register. Note that the SIMAR register also has the name SIMCTL2 which is used by the SPI function. Bits SIMIDLE , SIMEN and bits SIM0~SIM2 in register SIMCTL0 are used by the I 2C interface. The SIMCTL0 register is shown in the above SPI section. ¨ SIMIDLE The SIMIDLE bit is used to select if the I 2C interface continues running when the device is in the IDLE mode. Setting the bit high allows the I 2C interface to maintain operation when the device is in the Idle mode. Clearing the bit to zero disables any I 2Cop- erations when in the Idle mode. This SPI/I 2C idle mode control bit is located at CLKMOD register bit4. ¨ SIMEN The SIMEN bit is the overall on/off control for the I 2C interface. When the SIMEN bit is cleared to zero to disable the I 2C interface, the SDA and SCL lines will be in a floating condition and the I 2C operating cur- rent will be reduced to a minimum value. In this con- dition the pins can be used as SEG functions. When the bit is high the I 2C interface is enabled. The SIM configuration option must have first enabled the SIM interface for this bit to be effective. Note that when the SIMENbit changes from low to high the contents of the I 2C control registers will be in an unknown condition and should therefore be first initialised by the application program. ¨ SIM0~SIM2 These bits setup the overall operating mode of the SIM function. To select the I 2C function, bits SIM2~ SIM0 should be set to the value 110. S T A R T s i g n a l f r o m M a s t e r S e n d s l a v e a d d r e s s a n d R / W b i t f r o m M a s t e r A c k n o w l e d g e f r o m s l a v e S e n d d a t a b y t e f r o m M a s t e r A c k n o w l e d g e f r o m s l a v e S T O P s i g n a l f r o m M a s t e r I 2 C D a t a R e g i s t e r ( S I M D R ) S l a v e A d d r e s s R e g i s t e r ( S I M A R ) S h i f t R e g i s t e r D i r e c t i o n C o n t r o l M U X A d d r e s s M a t c h H A A S B i t I 2 C I n t e r r u p t D a t a i n L S B D a t a O u t M S B T r a n s m i t / R e c e i v e C o n t r o l U n i t 8 - b i t D a t a C o m p l e t e D e t e c t S t a r t o r S t o p D a t a B u s A d d r e s s C o m p a r a t o r E n a b l e / D i s a b l e A c k n o w l e d g e R e a d / w r i t e S l a v e S R W B i t H B B B i t H T X B i t S C L P i n S D A P i n H C F B i t I 2C Block Diagram |
Similar Part No. - HT56R22_14 |
|
Similar Description - HT56R22_14 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.NET |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | 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 |