sio port
sio port
I need to comunicate with an hardware that i builded by myself. I think i can use the sio port, but i don'a want to use the serial protocol..i have my own protocol, i simply need to know when on one pin i have an high logic level and when not. I also need to set another pin to a desired logic level.. Can someone tell me how to do that? Thanks...
Ciao! from Italy
what i actually need to do is to find a way to set the tx line for a desired time to a desired logic state; and to get the logic state at a desired moment of the rx line. is this possible using the simple serial protocol? or i need to add to my project a pic with serial support with an appropriate firmware?
i already had a look at pikey and sio sample of pspsdk, but that kind of use of the sio port is too high level.. isn't it?
i already had a look at pikey and sio sample of pspsdk, but that kind of use of the sio port is too high level.. isn't it?
Ciao! from Italy
Sorry, dude...don't know if there's a low-level "hidden" way to do that, but surely i can tell you there isn't an easy way to do what you want, and that's because you can't communicate directly with I/O port but you have to dialogue with an USART, so you can do on I/O port what the USART lets you do. Next step of yours could be to investigate the use of the audio port, but i suggest you to avoid this because audio port is filtered. If needed speed is not exagerated, you could use SIO power on/power off commands to signal a bit from PSP to the outside world...but this is definitely not professional. Good luck
(PS: a basic-level pic should cost about 3$, and is very easy to program...it could worth the pain to learn dealing with PICs)
(PS: a basic-level pic should cost about 3$, and is very easy to program...it could worth the pain to learn dealing with PICs)
The PIC's UART will anyway not function with the PSP's 2.5v port. The IO ports need 5v to trigger (When UART is activated on the 16f87x IO ports C6 and C7 become Tx and Rx).
You'll need to pull up the voltage anyway. If it doesn't work with the UART pins for some reason, there are plenty of software serial samples for PICs regular IO ports.
You'll need to pull up the voltage anyway. If it doesn't work with the UART pins for some reason, there are plenty of software serial samples for PICs regular IO ports.
Nothing personal but that's definitely false. I succeded in connecting directly a normal pic...so it must be even easier with the new microampere family. The trick is in feeding the pic itself with something around 2.5/3 VTorch wrote:The PIC's UART will anyway not function with the PSP's 2.5v port. The IO ports need 5v to trigger (When UART is activated on the 16f87x IO ports C6 and C7 become Tx and Rx).
You'll need to pull up the voltage anyway. If it doesn't work with the UART pins for some reason, there are plenty of software serial samples for PICs regular IO ports.
I had problems activating an input pin with my 16F877A even with 4.4v input from other sources (due to low voltage from transformer).
Even if it does work like this will it respond fast enough? Is there any additional delay in triggering on low voltage?
But I was running the PIC with a perfect 5.00v from a USB port. I didn't know that reducing the voltage also reduced the threshold voltage of the schmidt triggers.jean wrote:The trick is in feeding the pic itself with something around 2.5/3 V
Even if it does work like this will it respond fast enough? Is there any additional delay in triggering on low voltage?
Exactly, in paricular when you use the usart.Not enough to make a difference at serial speeds.
To return up to pic power voltage, i must admit that Microchip's products are different from stock to stock and there's some exemplar that i wasn't able to program with my simple programmer, probably due to timing problem. Said that, try some of the new microAmpere family....or try using a max619 (4$ ordering 2 pieces)