Channel n Generator Selection
Each channel can be connected to one event generator. Not all generators can be connected to all channels. Refer to the table below to see which generator sources can be routed onto each channel and the generator value to be written to EVSYS.CHANNELn to achieve this routing. Writing the value 0x00 to EVSYS.CHANNELn turns the channel off.
Bit7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
CHANNELn[7:0] | |||||||
AccessR/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W |
Reset0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Channel Generator Selection
GENERATOR | Async/Sync | Description | Channel Availability | ||
---|---|---|---|---|---|
Value | Name | ||||
Peripheral | Output | ||||
0x01 | UPDI | SYNCH | Sync | Rising edge of SYNCH character detection | All channels |
0x06 | RTC | OVF | Async | Counter overflow | All channels |
0x07 | CMP | Compare match | |||
0x08 | PIT_DIV8192 | Prescaled RTC clock divided by 8192 | Even numbered channels only | ||
0x09 | PIT_DIV4096 | Prescaled RTC clock divided by 4096 | |||
0x0A | PIT_DIV2048 | Prescaled RTC clock divided by 2048 | |||
0x0B | PIT_DIV1024 | Prescaled RTC clock divided by 1024 | |||
0x08 | PIT_DIV512 | Prescaled RTC clock divided by 512 | Odd numbered channels only | ||
0x09 | PIT_DIV256 | Prescaled RTC clock divided by 256 | |||
0x0A | PIT_DIV128 | Prescaled RTC clock divided by 128 | |||
0x0B | PIT_DIV64 | Prescaled RTC clock divided by 64 | |||
0x10 | CCL | LUT0 | Async | LUT output level | All channels |
0x11 | LUT1 | ||||
0x12 | LUT2 | ||||
0x13 | LUT3 | ||||
0x14 | LUT4(1) | ||||
0x15 | LUT5(1) | ||||
0x20 | AC0 | OUT | Async | Comparator output level | All channels |
0x21 | AC1 | ||||
0x22 | AC2 | ||||
0x24 | ADC0 | RESRDY | Sync | Result ready | All channels |
0x28 | PTC | RESRDY | Sync | Result ready | All channels |
0x30 | ZCD0 | OUT | Async | ZCD output level | All channels |
0x31 | ZCD1(1) | ||||
0x40-0x47 | PORTA | PIN0-PIN7 | Async | Pin level(2) | CHANNEL0 and CHANNEL1 only |
0x48-0x4F | PORTB(1) | ||||
0x40-0x47 | PORTC | PIN0-PIN7 | Async | PIN level(2) | CHANNEL2 and CHANNEL3 only |
0x48-0x4F | PORTD | ||||
0x40-0x47 | PORTE (1) | PIN0-PIN7 | Async | Pin level (2) | CHANNEL4 and CHANNEL5 only |
0x48-0x4F | PORTF | ||||
0x60 | USART0 | XCK | Sync | Clock signal in SPI Host mode and synchronous USART Host mode | All channels |
0x61 | USART1 | ||||
0x62 | USART2 | ||||
0x63 | USART3(1) | ||||
0x64 | USART4(1) | ||||
0x68 | SPI0 | SCK | Sync | SPI host clock signal | All channels |
0x69 | SPI1 | ||||
0x80 | TCA0 | OVF_LUNF | Sync | Overflow/Low byte timer underflow | All channels |
0x81 | HUNF | Sync | High byte timer underflow | ||
0x84 | CMP0_LCMP0 | Sync | Compare channel 0 match/Low byte timer compare channel 0 match | ||
0x85 | CMP1_LCMP1 | Sync | Compare channel 1 match/Low byte timer compare channel 1 match | ||
0x86 | CMP2_LCMP2 | Sync | Compare channel 2 match/Low byte timer compare channel 2 match | ||
0x88 | TCA1(1) | OVF_LUNF | Sync | Overflow/Low byte timer underflow | All channels |
0x89 | HUNF | High byte timer underflow | |||
0x8C | CMP0_LCMP0 | Compare channel 0 match/Low byte timer compare channel 0 match | |||
0x8D | CMP1_LCMP1 | Compare channel 1 match/Low byte timer compare channel 1 match | |||
0x8E | CMP2_LCMP2 | Compare channel 2 match/Low byte timer compare channel 2 match | |||
0xA0 | TCB0 | CAPT | Sync | CAPT Interrupt flag set(3) | All channels |
0xA1 | OVF | Counter overflow | |||
0xA2 | TCB1 | CAPT | Sync | CAPT Interrupt flag set(3) | All channels |
0xA3 | OVF | Counter overflow | |||
0xA4 | TCB2 | CAPT | Sync | CAPT interrupt flag set(3) | All channels |
0xA5 | OVF | Counter overflow | |||
0xA6 | TCB3(1) | CAPT | Sync | CAPT interrupt flag set(3) | All channels |
0xA7 | OVF | Counter overflow | |||
0xB0 | TCD0 | CMPBCLR | Async | Counter matches CMPBCLR | All channels |
0xB1 | CMPASET | Counter matches CMPASET | |||
0xB2 | CMPBSET | Counter matches CMPBSET | |||
0xB3 | PROGEV | Programmable event output |