| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
CDP1851DX bảng dữ liệu(PDF) 5 Page - Intersil Corporation |
|
|
|||||||||||||||||||||||||||||
CDP1851DX bảng dữ liệu(HTML) 5 Page - Intersil Corporation |
|
5 / 14 page ![]() 4-9 Programming Initialization and Controls The CDP1851 PlO must be cleared by a low on the CLEAR input during power-on to set it for programming. Once programmed, modes can be changed without clearing except when exiting the bit-programmable mode. A low on the CLEAR input sets both ports to the input modes, disables interrupts, unmasks all bit-programmed interrupt bits, and resets the status register, A RDY, and B RDY. Mode Setting The control register must be sequentially loaded with the appropriate mode set control bytes in order as shown in Table 1 (i.e. input mode then output mode, etc.). Port A is set with the SET A bit = 1 and port B is set with the SET B bit = 1. If a port is set to the bit-programmable mode, the bit-programming control byte from Table 2 must be loaded. A bit is programmed for output with the I/O bit = 1 and for input with the I/O bit = 0. The STROBE and RDY lines may be programmed for input or output with the STROBE/RDY control byte of Table 2. Input data on the STROBE and RDY lines is detected by reading the status register. When using the STROBE or RDY lines for output, the control byte must be loaded every time output data is to be changed. To program logical conditions that will gen- erate an interrupt, the interrupt control byte of Table 3 must be loaded. An interrupt mask of the eight I/O lines may be loaded next, if bit D4 (mask follows) of the interrupt control byte = 1. The I/O lines are masked if the corresponding bit of the inter- rupt mask register is 1, otherwise it is monitored. Any combi- nation of masked bits are permissible, except all bits masked (mask = FF). INT Enable Disable To enable or disable the INT line in all modes, the interrupt ENABLE/DISABLE byte must be loaded (see Table 4). Inter- rupts can also be detected by reading the status register (see Table 5). All interrupts should be disabled when programming or false interrupts may occur. The INT outputs are open drain NMOS devices that allow wired O Ring (use 10K pull-up registers). SET PORTS A AND B TO INPUT, OUTPUT, OR BIT-PROGRAMMABLE MODE USING TABLE 1 GENERATE CLEAR PULSE AT PIN 13 IS EITHER PORT SET TO THE BIT-PROGRAMMABLE MODE 3 NO YES NOW SET PORT A TO BIDIRECTIONAL MODE, IF DESIRED SET MASTER INTERRUPT ENABLE/DISABLE USING TABLE 4 MAIN PROGRAM WILL INTERRUPTS BE USED FOR BIT-PROGRAMMED PORT? PERFORM FOLLOWING SEQUENCE BEFORE PROGRAMMING PORT A TO BIDIRECTIONAL MODE SET BIT DIRECTION USING TABLE 2 SET BIT LOGICAL CONDITIONS AND MASKING USING TABLE 3 REPEAT FOR EACH BIT-PROGRAMMABLE PORT REPEAT FOR EACH BIT-PROGRAMMABLE PORT YES NO FIGURE 3. A FLOW CHART GUIDE TO CDP1851 MODE PROGRAMMING NOTES: 1. STROBE/READY I/O Control Byte (Table 2) is also used to output data to STROBE and READY lines when bit-programmed. 2. Status register (Table 2) is used to input data from STROBE and READY lines when bit-programmed. 3. Interrupt status is also read from status register. CDP1851, CDP1851C |
|
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |