5.3 Microcontroller Pin Configuration Details
Below are the pin configuration details of the AVR128DA48 microcontroller for the three-phase sequence detection application.
| Serial No | Microcontroller Pin | Pin Configuration | Peripherals Configuration | Pin Function | 
|---|---|---|---|---|
| 1 | PA4 | SPI-MOSI | SPI | Waveform Click SPI0-MOSI | 
| 2 | PA6 | SPI-SCK | SPI | Waveform Click SPI0-SCK | 
| 3 | PC0 | Rx | USART | USART1 Rx | 
| 4 | PC1 | Tx | USART | USART1 Tx | 
| 5 | PC7 | Input | GPIO | Curiosity Nano Board onboard button | 
| 6 | PD1 | Analog Input | ZCD | ZCD 0 Input | 
| 7 | PE3 | Analog Input | ZCD | ZCD 1 Input | 
| 8 | PD6 | Analog Input | ADC | Waveform Click 1 Output to ADC-AN6 | 
| 9 | PD5 | Analog Input | ADC | Waveform Click 2 Output to ADC-AN5 | 
| 10 | PD4 | Analog Input | ADC | Waveform Click 3 Output to ADC-AN4 | 
| 11 | PA7 | SPI-CS1(Output) | GPIO | Waveform Click 1, AD5227 Chip Selection | 
| 12 | PD7 | SPI-FSN1(Output) | GPIO | Waveform Click 1, AD9833 Chip Selection | 
| 13 | PD0 | OEN1 (Output) | GPIO | Waveform Click 1 Output Enable | 
| 14 | PE2 | SPI-CS2(Output) | GPIO | Waveform Click 2, AD5227 Chip Selection | 
| 15 | PF3 | SPI-FSN2(Output) | GPIO | Waveform Click 2, AD9833 Chip Selection | 
| 16 | PB5 | OEN2 (Output) | GPIO | Waveform Click 2 Output Enable | 
| 17 | PB4 | SPI-CS3(Output) | GPIO | Waveform Click 3, AD5227 Chip Selection | 
| 18 | PE1 | SPI-FSN3(Output) | GPIO | Waveform Click 3, AD9833 Chip Selection | 
| 19 | PD2 | OEN3 (Output) | GPIO | Waveform Click 3 Output Enable | 
