#avr Logs

Aug 23 2021

#avr Calendar

05:09 AM specing_ is now known as specing
08:10 AM MrMobius: is there a way to output the system clock on a pin then temporarily change the pin to a gpio then output the system clock again?
08:16 AM exp: MrMobius: please specify which exact chip
08:18 AM MrMobius: exp, atmega328 or another atmega that comes in dip28
08:19 AM exp: i don't know it offhand, but i'll read the datasheet to try and help
08:19 AM exp: clock distribution seems to vary a lot between the range
08:22 AM exp: MrMobius: i can't see a trivial way unless you can deal with a hefty division of the system clock, ie drive it via an interrupt
08:22 AM exp: it looks to be fuse controlled, with no ability to self program fuses
08:26 AM MrMobius: it would need to be as fast as the system clock so no interrupts unfortunately
08:27 AM MrMobius: it might work if the clock output can be paused. i saw there was a clock divider but that might not be able to turn the output completely off
08:28 AM exp: i'm pretty sure it's system clock, so even if so you'd have to reset to resume, i think
08:31 AM MrMobius: exp. ok thanks for your help
08:32 AM exp: MrMobius: ah it looks like this part doesn't have a 'toggle' register either
08:32 AM exp: so i don't think it'd be possible to flip a pin in a single cycle
08:32 AM exp: and thanks but i wasn't any help at all, lol
08:35 AM MrMobius: hehe well knowing it cant be done is useful to know too :P