The firmware execution starts with the initialization of the microcontroller and its
peripherals. The Phase Sequence Detector application uses microcontroller peripherals
such as SPI, Timer, UART, ADCC, GPIO and ZCD. The system is initialized in the following
configurations:
Table 6-1. Microcontroller Peripherals
Configuration DetailsPeripherals | SPI1 | UART2 | ADCC | TMR2 | TMR4 | ZCD1 and ZCD2 |
---|
Configurations | SPI Clock (6 MHz) | Baud rate (230400) | Resolution (10 bits) | Timer Clock (500 kHz) | Timer Clock (16 MHz) | ZCD enable |
SPI Host mode | Parity bit (‘0 ’) | ADC Clock (2 MHz) | Timer Mode (Roll Over Pulse) | Timer Mode (Roll Over Pulse) | ZCD Interrupt (Rising Edge) |
Data Mode 2 | Stop bit (‘1 ’) | Sampling Frequency (1 kHz) | Timer Period (20 ms) | Timer Period (1 ms) | Logic Output Polarity (not inverted) |