fantastic! thank you Darrel! looking forward to it..
fantastic! thank you Darrel! looking forward to it..
Ok, here's the modification of MIBAM for use with 16F1's.
It also works with 14-bit cores (12F, 16F) and 18F's.
I've tested it on 16F1827, 16F1947, 16F877A and 18F4550.
Sorry, I don't have a 12F1822.
One problem I spent a lot of time trying to figure out ended up being caused by the statements ...
T1CON.0 = 0 'disable mibam
T1CON.0 = 1 'enable mibam
I really thought that would work to stop interrupts from occuring during the DEBUG statements.
But it turns out that 1 interrupt can still happen after you stop the timer.
I have yet to understand how that happens, but it does.
If you use these statements instead ...
GIE = 0 'disable mibam
GIE = 1 'enable mibam
then no further interrupts occur to disturb the DEBUG's.
They are actions of the chips themselves, not MIBAM.
MIBAM seems stable at this point, but let me know if you have any problems.
DT
fantastic! thank you again... going to give this a try this evening and report back. (day job and stuff..)
question: is it going to be possible to use the hardware uart while mibam is running? eventually would like be able to receive serial commands, rgb data
to control led color.
Sure, the USART will work fine with MIBAM.
Then you don't need to disable interrupts.
I don't think you can have the POT connected, since the USART will use 2 pins and the LED's use 3 pins.
There won't be an analog pin left. But since the serial data controls the LED's, you probably don't need the POT anymore.
DT
update: finally got time to test the new MIBAM with the 12F1822 and works like a charm!! good stuff.
So.... to make a more "proper" test I figured I'd whip up a little project to give a better demo, so did a quick and dirty pcb design threw in a few components, and presto a uber quick, interactive light module, (always wanted a interactive tabletop)
here's a super rough video showing it all in action...
I'm going to take a few days to clean up the code/pcb gerbers and post them
here if anyone wants to build a fun blinky toy...![]()
Ooooo, very cool!
That's the neatest use of MIBAM I've seen so far.
Thanks for the video. I think my counter top needs a makeover. (if I wasn't renting)
DT
Yup. Very cool. Are you using the LEDs to sense changes, then flipping them to outputs, or using sensors?
Bookmarks