06-26-2015, 01:14 PM
(06-26-2015, 01:01 PM)OdinYggd Wrote:yes, but everything has come neatly in a set on a Cryton SK40C board, all I have to do is correctly assemble the output components(LEDs) and program the code correctly, (also supply enough power, I've spent hours with verification error just because I supply not enough power). I did manage to get the result I wanted(06-25-2015, 06:40 AM)Segolia Wrote: I can't give you a code example easily. I'd have to read through the datasheet for your device to even work out pinouts and registers properly. Not to mention I'm a bit rusty and I've never worked with PIC (I learned assembly with an ARM architecture).
It should be pretty straightforward, you know how to write interrupt handlers right? psuedocode would look something like
And remember if you're using registers to store those values to push them onto the stack before running your interrupt handler.
Is it required to use PIC for this? I tried using an attiny recently instead of a pic for a project and was quite impressed. There's a lot less setup going on, and the attiny has a lot more registers to work with making it easier to code assembly for compared to the single 'W' register of the pic architecture.
I've never actually run PIC code, though I have written it a few times, while I have both assembly and C++ for attiny working in actual devices.
so far into Portal Stories MEl:
"This is Black Mesa shit here!"
note:
Salt cave pools are corrosive