I'm confused. So, your big thank you a year ago, (and the happy dance by Steve) was for code you couldn't get working? Or you didn't try the code until now? Perhaps more explanation is required, at least for me.![]()
I'm confused. So, your big thank you a year ago, (and the happy dance by Steve) was for code you couldn't get working? Or you didn't try the code until now? Perhaps more explanation is required, at least for me.![]()
http://www.scalerobotics.com
Yes, I have not tested this scheme until yesterday ... and how I say, I found that does not work ! Even if my ohm-meter show "right" value of resistances ( at every press of buttons) the HU not react ; with optocouplers all are ok. Strange for me...The hardware it's finished, but remains my astonishment about this. Thanks for reply !
Welllll Fratello, it seems you've been bitten by a simulator ?
One hint from Steve's code's comments . . . " MUST USE MPASM " . . . Your configs indicate PB assembler.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Thanks for reply !
I do not think I understood very well ...What that means "MUST USE MPASM" ?!
Trisx.y in PBP it's not like trisx.y in assembler ?
Read
http://www.picbasic.co.uk/forum/showthread.php?t=543
And stop using the simulator, or at least let everyone kow that you are when you post a problem.
Dave
Always wear safety glasses while programming.
Thanks You so much for support ! Are some thinks I dont understand (too ...) ...
1. I dont use MPASM in code.
2. My astonishment it's about non-function of this hardware ! If I connect JUST the resistor on jack, the HU react ! If I use same resistor -via optocoupler - the HU react ! But with PIC, dont !
I increased the time for each tris command, but without results !
Code:case 1 ; volume down trisb.2=0 Pause 5000 ; I try even with this huge pause ! trisb.2=1 ... endcase
I am not familiar with the HU, but if you post the current hardware schematic (PIC, opto, HU) someone may be able to spot the problem.
Dave
Always wear safety glasses while programming.
Must use the MPASM assembler from Microchip, and not the PB assembler supplied with PBP. I am betting the simulator defaults to using MPASM and simply ignores the PB configs altogether. So when you run it, it knows what to do with Steve's keypad code whereas PB does not.Most of Steve and Darrel's code samples require MPASM, and when you upgrade to PBP3 it ONLY uses MPASM, so it is a worthwhile change.
Last edited by Archangel; - 29th May 2012 at 06:58.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks