| Electronic Components Datasheet Search |
|
VS1010D Datasheet(PDF) 73 Page - VLSI Solution Oy |
|
|
|||||||||||||||||||||||||||||
VS1010D Datasheet(HTML) 73 Page - VLSI Solution Oy |
|
73 / 98 page ![]() VS1010d Datasheet 11 VS1010D PERIPHERALS AND REGISTERS 11.11 GPIO: Interruptable General Purpose IO Ports 0-2 VS1010d has 3 general purpose IO ports that can operate either in GP mode or in perip mode. In order to use pins as gpio the GPIOx_MODE registers must be cleared (default value). GPIO port 0 is 11 bits wide, GPIO port 1 is 15 bits wide, and GPIO port 2 is 16 bits wide. Interruptable General I/O GPIOx_ Base Addresses GPIO Index Address Bits in Port GPIO0 0xFCA0 10:0 GPIO1 0xFCC0 14:0 GPIO2 0xFCE0 15:0 Interruptable General I/O Registers Reg Type Reset Abbrev Description 0 r/w 0 GPIOx_DDR Data direction 1 r/w 0 GPIOx_ODATA Data output 2 r 0 GPIOx_IDATA Data input (I/O pin state) 3 r/w 0 GPIOx_INT_FALL Falling edge interrupt enable 4 r/w 0 GPIOx_INT_RISE Rising edge interrupt enable 5 r/w 0 GPIOx_INT_PEND Interrupt pending source 6 w 0 GPIOx_SET_MASK Data set (→ 1) mask 7 w 0 GPIOx_CLEAR_MASK Data clear (→ 0) mask 8 r/w 0 GPIOx_BIT_CONF Bit engine config 0 and 1 9 r/w 0 GPIOx_BIT_ENG0 Bit engine 0 read/write 10 r/w 0 GPIOx_BIT_ENG1 Bit engine 1 read/write GPIOx_DDR register configure the directions of each of the 16 I/O pins. A bit set to 1 in the DDR turns the corresponding I/O pin to output mode, while a bit set to 0 sets the pin to input mode. The register is set to all zeros in reset, i.e. all pins are inputs by default. The current state of the DDR can also be read. GPIOx_ODATA register sets the GPIO pin high or low. Only pins that are configured as outputs are affected. GPIOx_IDATA monitiors the current state of a pin. The actual logical levels of the I/O pins are seen in the input data register. Note: The pin state can be read even if the pin is in peripheral mode (i.e. GPIOx_MODE[y] is set). GPIOx_INT_RISE and GPIOx_INT_FALL configures an interrupt trigger edge. If a bit of the falling edge interrupt enable register (GPIOx_INT_FALL) is set to 1, a falling edge in the cor- responding pin (even when configured as output) will set the corresponding bit in the interrupt pending source register (GPIOx_INT_PEND). If a bit of the rising edge interrupt enable register (GPIOx_INT_RISE) is set to 1, a rising edge in the corresponding pin (even when configured as output) will set the corresponding bit in the interrupt pending source register (GPIOx_INT_PEND). GPIOx_INT_PEND defines the source of a pending interrupt. If any of the bits in the interrupt pending source register (GPIOx_INT_PEND) are set, an interrupt request is generated. Bits in GPIOx_INT_PEND can be cleared by writing a 1-bit to the bit that is to be cleared. Version: 0.41, 2022-10-05 73 |
|
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 |