ataradov / siggen

100+ MHz signal generator and frequency counter based on Atmel SAM D11
5 stars 3 forks source link

Porting to SAMD21 (Seeeduino Xiao) #1

Open Andy79881 opened 4 months ago

Andy79881 commented 4 months ago

I would like to port to SAMD21G18 device, which is used in Seeeduino xiao. Is it possible without source code changes? If changes are needed could you please point me to the affected source code files? Many thanks in advance. BR Andreas

ataradov commented 4 months ago

D21 has ll the same peripherals, so it should be possible to port that code. This code overclocks the TCC, so I don't know if that overclokcing would work on D21. I expect it would, but I have not tested it.

I can't provide exact instructions, since it is too many steps. The basic steps would include getting a basic D21 project to get all the header files, and then moving the source files to that project. After that you are likely to get some compilation errors, which need to be fixed to make it compatible with D21.