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 ?
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.
So...with schematic from post #1 - no results !
With a simple resistor - good results ; with optocouplers - good results too.
Last edited by fratello; - 28th May 2012 at 18:57.
...and how an "original" remote work :
Hi,
I haven't studied this thread in detail but if the idea is to "place a resistance" across the plug then I don't think you can run the same code (if that's what you're doing) with the two different hardware designs. When using the circuit with the opto-isolators you drive the PIC-pin high in order to turn on the opto-isolator and connect the associated resistor across the plug - and if I read your posts correct this works fine.
It's not exactly clear to me how the plug is connected to the circuit in post#1 but it looks to me as if this circuit doesn't work the same way as the one with the opto-isolators. So, if you're trying to run the same code with the two circuits my guess is that's where your problem is.
/Henrik.
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