Detailed Description
The IO module is used to access and configure the GPIO pins. The module makes it possible:
- configure GPIO as digital IO
- configure GPIO as analogue IO
- read/write/toggle value on a digital pin
- read/write analogue value on a pin
- use the IO pin as an external interrupt source with the help of a callback function
- configure IO pins for the UART and SPI module
- configure pull up/downs for the digital IO pins
The IO module is configured with the help of Dolphin APIConfigurator. The Dolphin APIConfigurator generates the initialization parameters for the pins in the array io_param[]. These parameters are initiated in the API using the io_init function. The possible IO initialization for the pins are showed on the picture below.
- Note:
- Be sure to initialise the IO module using Dolphin APIConfigurator correctly otherwise the peripherial sw modules will not work correctly. The Ports WXID_IO,WXOD_IO are low Power with Output 1.8V and Current low.
-
The default level of an output IO pin is LOW. When the io_init function is called all pins which are configured as output are set active and LOW. If the application requires that a pin is set always HIGH, he io_setDigital or io_setPort hast to be called prior mainInit();.
GPIO pins