| Electronic Components Datasheet Search |
|
MSM7630 Datasheet(PDF) 80 Page - OKI electronic componets |
|
|
|||||||||||||||||||||||||||||
MSM7630 Datasheet(HTML) 80 Page - OKI electronic componets |
|
80 / 95 page ![]() MSM7630 ¡ Semiconductor 80/95 5. PIO Operation 5.1 Software Control Mode In software control mode data input/output and control signals are all controlled by software. 5.1.1 Data Input from External Device 1) Write "1x" to the PCMD (Command Register) PMOD bits ("x" indicates that either "0" or "1" is acceptable). 2) Read the input buffer PIB to read the parallel port’s pin levels at that time. 5.1.2 Data Output to External Device 1) Write "1x" to the PCMD (Command Register) PMOD bits ("x" indicates that either "0" or "1" is acceptable). 2) Write a value to the output buffer POB. 3) Write "1" to the bits in PDIR (Direction Register) that correspond to parallel port pins that will be outputs. This starts to drive the parallel port for data to be output. 4) If "0" is written to any bits in PDIR, then the corresponding parallel port pins will stop being driven. 5.2 Handshake Control Mode Inhandshakecontrolmodedatainputiscontrolledbyhandshakeusingastrobe(PSTB),inputbuffer full (PIBF), acknowledge (PACK), and output buffer full (POBF) for input/output. 5.2.1 Data Input from External Device (A) SCP operation 1) Write "01" to the PCMD (Command Register) PMOD bits. Also write "1" to PCMD’s PIEN bit to enable input operation. 2) When data is written to the input buffer PIB from the external device, the PSTS (Status Register) PIST bit will become "1" to indicate that there is valid data in PIB. When PSTS’s PIST bit becomes "1", the input buffer full output (PIBF) will become "1". 3) If PSTS’s PIST bit is "1" and input buffer full interrupts have been enabled (PCMD’s PIIE bit is "1"), then a PIO interrupt to the CPU core will be generated. 4) The CPU core verifies that PSTS’s PIST bit is "1" in the PIO interrupt vector process routine and reads the input buffer PIB. It then writes "0" to PSTS’s PIST bit to release the interrupt. 5) When PSTS’s PIST bit becomes "0", the input buffer full output (PIBF) also becomes "0". 6) Repeat the operation from step 2). |
|
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 |