Announcement

Collapse
No announcement yet.

PIC Output Driving Voltage

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Keith55555
    replied
    Yeah, that was my thought

    Leave a comment:


  • mpgmike
    replied
    You could use a transistor or 2N7000 and invert the output. Tie the transistor to 5 volts with a pull up resistor.

    Leave a comment:


  • Keith55555
    replied
    Thanks Henrik. Then in that case, using RA2, the PIC's I/O is not capable, at 3 volts to trigger the 5 volt driven, serial display.

    Leave a comment:


  • Henrik Olsson
    replied
    It's called a bit because it actually is a bit, in the register called PORTx. That register is then connected to the actual pin via the tristate buffers than is controlled via the TRISx register. If you
    Code:
    DEFINE DEBUG_REG PORTA
    DEFINE DEBUG_BIT 2
    The debug output will be on PORTA.2 or RA2 if you like (which is the 3rd bit in that register since you start counting at 0).

    Leave a comment:


  • mpgmike
    replied
    I think you're now asking about using PBP commands to do something I just bang out manually. Don't think I can help you there.

    Leave a comment:


  • Keith55555
    replied
    Nothing going to the PIC from 5 volts. Just confused about the name (bit) for the debug out rather than calling it a pin. So if I'm debugging out RA2 on this pic, is it considered bit 2 or bit 3 (RA-0,1,2)

    Leave a comment:


  • mpgmike
    replied
    Three volts might be enough for the LCD to register as a binary "1", you'll have to look at the data sheet.. If you are receiving signals from the LCD at 5 volts, you will have to use a voltage divider. Pins cannot be driven more than 0.5 volts above VDD. There is an internal diode that will try to short anything above that, and too much current and it'll fry the PIC. It may also cause the LCD some harm.

    Leave a comment:


  • Keith55555
    started a topic PIC Output Driving Voltage

    PIC Output Driving Voltage

    Would a PIC (12LF1822) which is a 3 volt i.c., be able to debug to a serial 5 volt LCD? Enough reference to high/low?
    Secondly, the 'bit' assigned in the debug define, for example using RA2 I/O, does this mean using 2 as the bit or 3 as the designated bit?
Working...
X