Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
GetBit command would be simple. I would do the same as i did in C which was just wait for a Low or TRIGGER on low then count up until its high then calculate how long it took by reading the count variable. You should know how to do this already lol
My code is exactly the same as yours Jason. I'm just having fun trying to make it a bit tighter, cleaner, simpler, and more elegant using assembler (my specialty, grin)...
To do SIRC in as background wouldnt be hard with my code. All you have to do is setup a interrupt and have it do the same code as in my "GetSIRC" function. Once you copy my code to the interrupt then you should be able to collect data like that. Just remove the first wait for low. Since it will interrupt on low anyway.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.