Rev. 1.50 154 August 28, 2017 Rev. 1.50 155 August 28, 2017
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
HT66F0175/HT66F0185
A/D Flash MCU with EEPROM
UART Interface
TheUARTinterfacemoduleisonlycontainedintheHT66F0185device.TheHT66F0185device
containsanintegratedfull-duplexasynchronousserialcommunicationsUARTinterfacethatenables
communicationwithexternaldevicesthatcontainaserialinterface.TheUARTfunctionhasmany
featuresandcantransmitandreceivedataseriallybytransferringaframeofdatawitheightor
ninedatabitspertransmissionaswellasbeingabletodetecterrorswhenthedataisoverwrittenor
incorrectlyframed.TheUARTfunctionpossessesitsowninternalinterruptwhichcanbeusedto
indicatewhenareceptionoccursorwhenatransmissionterminates.
TheintegratedUARTfunctioncontainsthefollowingfeatures:
• Full-duplex,asynchronouscommunication
• 8or9bitscharacterlength
• Even,oddornoparityoptions
• Oneortwostopbits
• Baudrategeneratorwith8-bitprescaler
• Parity,framing,noiseandoverrunerrordetection
• Supportforinterruptonaddressdetect(lastcharacterbit=1)
• Separatelyenabledtransmitterandreceiver
• 2-byteDeepFIFOReceiveDataBuffer
• Transmitandreceiveinterrupts
• Interruptscanbeinitializedbythefollowingconditions:
♦
TransmitterEmpty
♦
TransmitterIdle
♦
ReceiverFull
♦
ReceiverOverrun
♦
AddressModeDetect
MSB LSB
…………………………
Transmitter Shift Register (TSR)
MSB LSB
…………………………
Receiver Shift Register (RSR)
TX Pin RX Pin
Baud Rate
Generator
TX Register (TXR) RX Register (RXR)
Data to be transmitted Data received
Bufferf
SYS
MCU Data Bus
UART Data Transfer Block Diagram