#avr Logs

Feb 17 2022

#avr Calendar

02:24 PM ac_slater: hey guys, sorry to bother. I have an ATMEL SAMC21 which is not really an AVR. Any good channels you would recommend?
02:33 PM qu1j0t3: there might be no better one than this one :)
02:33 PM ac_slater: ah great. I'm using ATMEL start to build some pinmux/clock configs. Not sure if you guys use that. There is some options for GPIO: "Input" "Output" "Peripheral IO"... I have no idea what "Periphal IO" is. No help online anywhere
02:35 PM exp: ac_slater: normally the little components inside the chip that handle specialised parts are called peripherals
02:35 PM ac_slater: yea I get that
02:35 PM exp: most likely you can route certain pins to certain hardware elements
02:35 PM exp: AVRs usually have a pin table for 'alternate functions'
02:35 PM ac_slater: right, in SAMC21 family, it's SERCOM or whatever
02:36 PM exp: i do need to start playing with SAMs eventually
02:39 PM nohit: ac_slater: antto @ #music-electronics probably could help you
02:39 PM nohit: he has used SAMs and atmel start
02:44 PM ac_slater: https://postimg.cc/HJRLd10z here is a screenshot of the config
02:44 PM ac_slater: thanks nohit
02:58 PM Rab: "Each pin may either be used for general purpose I/O under direct application control or be assigned to an embedded device peripheral. When used for general purpose I/O, each pin can be configured as input or output, with a highly configurable driver and pull settings." p.435: https://ww1.microchip.com/downloads/en/DeviceDoc/SAMC20_C21_%20Family_Data_%20Sheet_DS60001479D.pdf
02:59 PM Rab: All signs point to what exp said, but it wouldn't hurt to ask someone who has used SAMC21 (not I).
02:59 PM ac_slater: "or be assigned to an embedded device peripheral" does this mean I don't need to "mess with it" and the peripheral will own it?
03:00 PM Rab: Very generally speaking, you usually have to set up the peripheral and assign the pin to it.
03:00 PM ac_slater: right and then the peripheral will set the level/direction depending on usage?
03:00 PM ac_slater: example for SPI, POL/PHA change the default levels
03:00 PM Rab: I think so, but the datasheet for your chip will describe exactly what happens.
03:01 PM ac_slater: I can just dump the start generated code with and without peripheral IO setting and diff
03:01 PM ac_slater: thanks guys
03:01 PM Rab: Yeah, that's a good way to learn more.