2015-03-06 10:26:02 +00:00
|
|
|
## SAM D20 Peripherals usage
|
|
|
|
|
|
|
|
| Type | Peripheral | Function | Notes
|
|
|
|
| --- | --- | --- | ---
|
|
|
|
|*GLCK*|
|
2015-03-13 09:58:22 +00:00
|
|
|
||gclk0|main clock, internal osc8m|4 MHz
|
|
|
|
||gclk1|tcxo clock, fed from xosc
|
2015-03-15 19:29:16 +00:00
|
|
|
||gclk2|rtc feed, fed from gclk1. divide by 4096
|
2015-03-13 09:58:22 +00:00
|
|
|
|
2015-03-06 10:26:02 +00:00
|
|
|
|*TC*||
|
2015-03-15 19:29:16 +00:00
|
|
|
||tc0|telemetry tick timer. 32-bit
|
2015-03-13 09:58:22 +00:00
|
|
|
||tc1|^^^^^
|
|
|
|
||tc2|counts cycles of tcxo. 32-bit
|
|
|
|
||tc3|^^^^^
|
|
|
|
||tc4|osc8m event source
|
2015-03-15 19:29:16 +00:00
|
|
|
||tc5|telemetry pwm 8-bit
|
|
|
|
|
2015-03-15 21:18:33 +00:00
|
|
|
|*EXTINT*|
|
|
|
|
||extint[5]|gps timepulse
|
2015-03-13 09:58:22 +00:00
|
|
|
|
|
|
|
|*event channels*|
|
|
|
|
||0|event source for timer 2 xosc measurement
|
|
|
|
||1|tc4 retrigger
|
|
|
|
|
2015-03-06 10:26:02 +00:00
|
|
|
|*SERCOM*||
|
|
|
|
||sercom0|spi flash
|
|
|
|
||sercom1|ublox gps
|
|
|
|
||sercom2|
|
|
|
|
||sercom3|radio|currently bitbanged as required pin layout broken in sercom
|
2015-03-13 09:58:22 +00:00
|
|
|
|
|
|
|
## SAM D20 Interrupts usage
|
|
|
|
|
2015-03-15 19:29:16 +00:00
|
|
|
| Name | Function | Priority H(0-3)L | Notes
|
2015-03-13 09:58:22 +00:00
|
|
|
| --- | --- | --- | ---
|
2015-03-15 21:18:33 +00:00
|
|
|
|TC0_IRQn|telemetry tick timer|0
|
2015-03-15 19:29:16 +00:00
|
|
|
|TC2_IRQn|xosc measurement done|2
|
|
|
|
|[GPS_SERCOM]_IRQn|gps usart rx|0
|
2015-03-15 21:18:33 +00:00
|
|
|
|EIC_IRQn|timer|1
|