National Instruments HPC467064 manual HPC167064 Uart, Uart Wake-Up Mode

Page 23

HPC167064 UART

The HPC167064 contains a software programmable UART. The UART (see Figure 26 ) consists of a transmit shift regis- ter, a receiver shift register and five addressable registers, as follows: a transmit buffer register (TBUF), a receiver buff- er register (RBUF), a UART control and status register (ENU), a UART receive control and status register (ENUR) and a UART interrupt and clock source register (ENUI). The ENU register contains flags for transmit and receive func- tions; this register also determines the length of the data frame (8 or 9 bits) and the value of the ninth bit in transmis- sion. The ENUR register flags framing and data overrun er- rors while the UART is receiving. Other functions of the ENUR register include saving the ninth bit received in the data frame and enabling or disabling the UART’s Attention Mode of operation. The determination of an internal or ex- ternal clock source is done by the ENUI register, as well as selecting the number of stop bits and enabling or disabling transmit and receive interrupts.

The baud rate clock for the Receiver and Transmitter can be selected for either an internal or external source using two bits in the ENUI register. The internal baud rate is pro- grammed by the DIVBY register. The baud rate may be se- lected from a range of 8 Hz to 128 kHz in binary steps or T3 underflow. By selecting a 9.83 MHz crystal, all standard baud rates from 75 baud to 38.4 kBaud can be generated. The external baud clock source comes from the CKX pin. The Transmitter and Receiver can be run at different rates by selecting one to operate from the internal clock and the other from an external source.

The HPC167064 UART supports two data formats. The first format for data transmission consists of one start bit, eight data bits and one or two stop bits. The second data format for transmission consists of one start bit, nine data bits, and one or two stop bits. Receiving formats differ from transmis- sion only in that the Receiver always requires only one stop bit in a data frame.

UART Wake-Up Mode

The HPC167064 UART features a Wake-Up Mode of opera- tion. This mode of operation enables the HPC167064 to be networked with other processors. Typically in such environ- ments, the messages consist of addresses and actual data. Addresses are specified by having the ninth bit in the data frame set to 1. Data in the message is specified by having the ninth bit in the data frame reset to 0.

The UART monitors the communication stream looking for addresses. When the data word with the ninth bit set is received, the UART signals the HPC167064 with an inter- rupt. The processor then examines the content of the re- ceiver buffer to decide whether it has been addressed and whether to accept subsequent data.

TL/DD/11046 – 34

FIGURE 26. UART Block Diagram

23

Image 23
Contents General Description FeaturesALL Other Inputs DC Electrical CharacteristicsReset Absolute Maximum RatingsUPI 20 MHz AC Electrical CharacteristicsDelay from CK2 Falling Edge to ALE Falling Edge Delay from CKI Rising Edge to ALE Rising EdgeDelay from CKI Rising Edge to ALE Falling Edge Delay from CK2 Rising Edge to ALE Rising Edge30 MHz AC Electrical Characteristics CKI Input Signal Characteristics Input and Output for AC Tests CK1, CK2, ALE Timing DiagramRead Cycle Microwire Setup/Hold Timing Econa Eprom ModeNormal Running Mode Functional Modes of OperationMemory Map of the HPC167064 Erasure CharacteristicsPin Descriptions Ports a & B Connection DiagramPorts a & B Operating Modes HPC167064 Interrupts Power Save ModesHPC167064 Operating Modes Wait StatesBit External Memory Interrupt Control Registers Timer OverviewInterrupt Arbitration Interrupt ProcessingBlock Diagram of Interrupt Logic Synchronous Outputs Timers T2 T3 BlockWatchdog Logic Timer RegistersTimer Applications MICROWIRE/PLUS OperationMICROWIRE/PLUS Application MICROWIRE/PLUSHPC167064 Uart Uart Wake-Up ModeMemory Universal Peripheral InterfaceShared Memory Support Design Considerations Dfffdffe Table IV. Memory Map of HPC167064 Emulating an HPC16083Frequency MHz 1500 1200 910 750 600 470 390 300 220 180 100 XtalHPC Instruction Set Description HPC167064 CPUAddressing Modes Memory Transfer Instructions BIT Instructions SbitRbit IfbitDevelopment Support Code EfficiencyHPC-DEV-IBMC HOW to OrderProgramming Support HPC-DEV-IBMAYamaichi Part SelectionSocket Selection PlccPage Life Support Policy Physical Dimensions inches millimeters