| Electronic Components Datasheet Search |
|
HT56RB27 Datasheet(PDF) 67 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT56RB27 Datasheet(HTML) 67 Page - Holtek Semiconductor Inc |
|
67 / 153 page ![]() SPI Communication After the SPI interface is enabled by setting the SIMnEN bit high, then in the Master Mode, when data is written to the SIMnDR register, transmission/reception will begin simultaneously. When the data transfer is complete, the TRFn flag will be set automatically, but must be cleared using the application program. In the Slave Mode, when the clock signal from the master has been received, any data in the SIMnDR register will be transmitted and any data on the SDIn pin will be shifted into the SIMnDR register. The master should output a SCSn signal to enable the slave device before a clock signal is provided and slave data transfers should be enabled/disabled before/after an SCSn signal is received. The SPI will continue to function even after a HALT instruction has been executed. I 2C Interface The I 2C interface is used to communicate with external peripheral devices such as sensors, EEPROM memory etc. Originally developed by Philips, it is a two line low speed serial interface for synchronous serial data transfer. The advantage of only two lines for communication, relatively simple communication protocol and the ability to accommodate multiple devices on the same bus has made it an extremely popular interface type for many applications. I 2C Interface Operation The I 2C serial interface is a two line interface, a serial data line, , and serial clock line, SCLn. As many devices may be connected together on the same bus, their outputs are both open drain types. For this reason it is necessary that external pull-high resistors are connected to these outputs. Note that no chip select line exists, as each device on the I 2C bus is identified by a unique address which will be transmitted and received on the I 2C bus. When two devices communicate with each other on the bidirectional I 2C bus, one is known as the master device and one as the slave device. Both master and slave can transmit and receive data, however, it is the master device that has overall control of the bus. For these devices, which only operates in slave mode, there are two methods of transferring data on the I 2C bus, the slave transmit mode and the slave receive mode. There are several configuration options associated with the I 2C interface. One of these is to enable the function which selects the SIMn pins rather than normal I/O pins. Note that if the configuration option does not select the SIMn function then the SIMnEN bit in the SIMnCTL0 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 interface. This uses the internal clock to in effect add a debounce time to the external clock to reduce the possibility 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. Configuration Option Function SIMn function SIMn interface or I/O pins I 2C debounce No debounce, 1 system clock; 2 system clocks I 2C Interface Configuration Options HT56RB27 TinyPowerTM A/D Type Smart Card OTP MCU with DAC, ISO 7816 and USB Interfaces Rev. 1.20 67 April 26, 2013 |
|
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 |