View Single Post
Old 2nd Dec 2022, 2:57 pm   #67
SiriusHardware
Dekatron
 
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 11,577
Default Re: Tesla Programmer

Quote:
const int addr[]={A0,A1,A2,A3,A4,A5,2,3,4};
Great minds, etc. ^^^^^^^^^^^^^^^^^^^

And yes of course, 0 and 1 are the pins tied up by comms.

As a matter of interest do you think that never-changing variables defined as 'const' are placed in program (code) memory rather than RAM? That would be my expectation (and the whole point of declaring them const) but something I read recently made me think maybe not. I've never pushed the Arduino RAM limit so hard before, so I'm only just having to think about it now.

Thanks for the info - I will try to follow your pin allocation scheme as far as possible but there may be circuit differences especially in the area of power control where I will have to deviate a bit to suit how things are done on Chris's PCB.
SiriusHardware is online now