« Close

Datasheets and User Guides

App Notes

Software & Driver

 

5.2.3 - ConfigIO

Writes and reads the current IO configuration.

Table 5.2.3-1. ConfigIO Command Response

Command:    
Byte    
0 Checksum8  
1 0xF8  
2 0x05  
3 0x0B  
4 Checksum16 (LSB)  
5 Checksum16 (MSB)  
6 WriteMask  
    Bit 0: 1 = Write Settings
    Bit 5: Assign pins to UART
7 NumberTimersEnabled  
8 CounterEnable  
    Bit 1: Enable Counter1
    Bit 0: Enable Counter0
9 TimerCounterPinOffset  
10-15 Reserved  
     
Response:    
Byte    
0 Checksum8  
1 0xF8  
2 0x05  
3 0x0B  
4 Checksum16 (LSB)  
5 Checksum16 (MSB)  
6 Errorcode  
7 Reserved  
8 NumberTimersEnabled  
9 CounterEnable  
10 TCPinOffset  
10-15 Reserved  
  • WriteMask: Has a bit that determines if new timer/counter settings are written.
  • NumberTimersEnabled: 0-4. Used to enable/disable timers. Timers will be assigned to IO pins starting with FIO0 plus TimerCounterPinOffset. Timer0 takes the first IO pin, then Timer1, and so on. Whenever this function is called and timers are enabled, the timers are initialized to mode 10, so the desired timer mode must always be specified after every call to this function.
  • TimerCounterPinOffset: 0-8. Timers/counters are assigned terminals starting from here.