Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 1.53 KB

File metadata and controls

34 lines (25 loc) · 1.53 KB

Static Badge Static Badge Static Badge

SAME51VectorScan

Firmware for Atmel/Microchip ATSAME51J20A microcontroller (ARM) on Igloo64 prototyping board. The board has nine big LEDs, but this code does not use them. It generates two analog ramp waveforms on the 12-bit DAC, VOUT0 and VOUT1. When connected to a fine analog CRT oscilloscope in X-Y mode, it displays a diagonal line.

Connections

Signal SAM E51 pin Name Notes
DEBUG1 5 PB04 HIGH during vector generation
DEBUG2 6 PB05 HIGH during DAC writes
VOUT0 3 PA02 X deflection signal
VOUT1 14 PA05 Y deflection signal
AIN6 15 PA06 Unused at present
AIN7 16 PA07 Unused at present
TxD 17 PA08 Transmits 'F' at 9600 baud every 20ms
RxD 18 PA09 Unused at present

DEBUG signals may be connected to a logic analyser for timing measurements. ADC pin assignments attempt to avoid clashes with SERCOM pins.

Compiling

Code written in MPLAB X V6.20 and compiled with 'xc32' compiler V4.60.