printout from pickit2
printout from pickit2
Warning I'm not a teacher
Thanks for running itThat’s getting worthwhile then. Using Pauseus in the first post would have added code to it.
I might as well have a shot at the serial input over the next few days then.
Basically I did this on dspic in C, and it wrote easily into PBP as well.
The pic at the receive end is supposed to be 16F628A in PBP/asm.
My mp3 player serial spits out the artist & title info from the ID tags as tracks are skipped (that much is working).
Then the 16F628A is supposed to receive the serial, and transmit IR to an electronic sign the same way a user would normally use a remote to reprogram the scrolling message![]()
This time going for serial input of a string terminated with either 0x00 or 0x0D (or any value below 0x20 really) into an array.
So far one byte, and untested, but I do have a PBP program on 16F628A ready to test and use it when done.
It’s on the receive side where I want serene replaced because I can keep going with my own data until the program memory is full.
Code:rxbyte var byte count var byte delay var byte shortdelay var byte delay = 100 ‘ actual serial timing shortdelay = 50 ‘ time/2 serinbyte: IF PORTB.1 = 1 THEN ‘ optional countdown to timeout here GOTO serinbyte ENDIF pauseus delay pauses shortdelay FOR count = 0 TO 7 rxbyte.bit7 = PORTB.1 rxbyte = rxbyte >> 1 pauseus delay NEXT count pauses shortdelay rxbyte = rxbyte ^ $FF return
i'd bet this won't stack_up any better than debug either as is
sram ?until the program memory is full.
Warning I'm not a teacher
Storing data in program memory until full yes.
Probably not like this, but I'd rather have the whole thing work in PBP
before doing any of it in asm.
Hserout of course will beat both of them,
but sometimes you want all eight bits of Portb for something else.
Bookmarks