logs archiveBotHelp.net / Freenode / #43oh / 2015 / July / 18 / 3
Amperture
I find it really weird though, that I do a fresh git clone of Energia, and I'm not seeing the compilers
ah nevermind
had to build it
flyback
http://www.eetimes.com/document.asp?doc_id=1327150&print=yes
Xark
(Action) notes #2 looks like quite a nice IoT toaster. :)
Amperture
You know, I almost didn't expect this project to work. I was thinking it'd fail miserably. But hell, it works perfectly!
Temperature gradient recorder, and it's much faster than even I anticipated.
Rickta59_
yo
just wanted to see what I've is like on a phone .. bleh
ice not I've hmm big cat fingers
ice not ice
hmm to smart for me
majuk
Hey all, I was looking for some assistance with interrupts and I2C.
My base code is the TI example I2C master Tx/Slave Rx code. All I want to do is set up so that a user has to push the master's button before the master will transmit a byte.
http://pastebin.com/YgnDcs50
Sorry, wrong file. sec
http://pastebin.com/5FB1iJ4V
That's the closest I have gotten. That code goes into LPM at line 100.
When you push the button, it starts sending I2C indefinitely.
if I put that line 100 LPM either at the top of the while loop (line 103) or try to control the loop in any other way (such as through TxByteCtr like http://pastebin.com/YgnDcs50), the program appears to hang on line 105
Any thoughts appreciated. Thanks.
Rickta59
does the unmodified sample code work?
majuk
Yes.
Rickta59
so what is different between your code and the sample code?
majuk
The LPM and P1 interrupt
Line 100 basically
lol
All the P1 interrupt does is reset its flag and kick out of LPM
Which is lines 140-EOF
Rickta59
do you get into the P1.3 interrupt?
majuk
Yes.
Rickta59
and then do you exit out and start exectuing in the main line?
majuk
Yes. So you push the button and the master starts Txing data endlessly.
What I *need* is to send one byte per button push
Rickta59
because you are using TXByteCtr as a flag between the main line and the isr you should probably declare it as a volatile
majuk
Ok. That is all from the TI example code
Rickta59
sure .. and if you compile as debug it probably works
if you compile as release it will probably break
the example are just that ..
majuk
I'm building it to my MSP430g2553
ok
I understand.
Rickta59
they use rotten coding
they do illustrate what registers need to be twiddled sometimes
majuk
This is only my second time experimenting with these boards so my knowledge is sketchy at best
Rickta59
* goes to look at ti sample
majuk
I can pastebin it to you.
Rickta59
sure
« prev 1 2 3 next »