Skip to main content
13 events
when toggle format what by license comment
Dec 14, 2019 at 1:08 history edited C. K. CC BY-SA 4.0
Added solution
Dec 14, 2019 at 1:01 vote accept C. K.
Dec 13, 2019 at 22:01 answer added Bruce Abbott timeline score: 3
Dec 13, 2019 at 21:59 answer added Justme timeline score: 1
Dec 13, 2019 at 20:15 comment added C. K. @ChrisStratton I will try that!
Dec 13, 2019 at 19:57 comment added C. K. @ElliotAlderson I updated the part of the code for clarity. It was also kind of intentionally not correct, because I'm not sure how memory mapping works. I hope this way represents better what I'm trying to achieve.
Dec 13, 2019 at 19:54 history edited C. K. CC BY-SA 4.0
Improved code.
Dec 13, 2019 at 18:04 comment added Chris Stratton Also use bitshifts to access the individual bits.
Dec 13, 2019 at 17:39 comment added Chris Stratton Consult the table of addresses in the data sheet, there is a densely contiguous sequence of PINx/DDRx/PORTx without even any gaps between ports.
Dec 13, 2019 at 17:35 comment added Michel Keijzers Also you have a semi colon after the for statement in the last but one line, probably unintentionally.
Dec 13, 2019 at 17:32 answer added Aaron timeline score: 1
Dec 13, 2019 at 17:31 comment added Elliot Alderson The last line of your pseudocode doesn't even have an assignment...what are you trying to do? What does 0x00 represent here? What kind of data do you expect offset() to return? Your original code is changing a single bit at a time using the OR operator but your pseudocode doesn't have the OR operator...I don't get it.
Dec 13, 2019 at 17:15 history asked C. K. CC BY-SA 4.0