Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: TonyA; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    4,826

    Thank you for the help and advice, I appreciate...

    Thank you for the help and advice, I appreciate it.

    Tony A
  2. Replies
    4
    Views
    4,826

    Thanks. Well my problem is that I might not fully...

    Thanks. Well my problem is that I might not fully understand the shiftout command.

    The master is another microcontroller, the Atmega8. The Atmega is sending a clock signal and latch data, the pic...
  3. Replies
    4
    Views
    4,826

    ShiftOut. Using PIC as Slave device.

    Hi,

    I not sure if this is possible, since I am confused about shiftout command.

    I would like to use the pic as a slave device. The pic would receive the clock signal from a master device, and...
  4. Replies
    8
    Views
    4,323

    I was wondering if anyone could check my code...

    I was wondering if anyone could check my code here and see if there are any boo-boo's.

    I am not getting the results I have expected. I am using a 4021 shift register sending serial data out to the...
  5. Replies
    8
    Views
    4,323

    Sorry. I have it all fixed now using your code...

    Sorry. I have it all fixed now using your code above. I was pasting it into some old code and wasn't paying attention.

    I'll post my code when I get it finished.

    Thanks for your help, I...
  6. Replies
    8
    Views
    4,323

    Fixed, I think. I had some kind of conflict with...

    Fixed, I think. I had some kind of conflict with the pin assignments. (I think).

    Thanks again.
  7. Replies
    8
    Views
    4,323

    It's been awhile since I worked with picbasic...

    It's been awhile since I worked with picbasic pro. I get an error with:

    Clock var PORTB.7
    Load var PORTB.6
    Data_1 var PORTB.5


    Don't know why.

    Thanks.
  8. Replies
    8
    Views
    4,323

    Ok, I see. Thanks very much.

    Ok, I see. Thanks very much.
  9. Replies
    8
    Views
    4,323

    Shiftin pic18f452

    Hi,

    I am using pic18f452 and want to connect a 4021B shift register to it.

    The shift reg is paralell input (switches) and serial output ----> to the pic.

    Now I see that in the pic manual the...
  10. Yes, you're right. The on-off time is too fast...

    Yes, you're right. The on-off time is too fast for the meter to register.

    I am just trying to achieve a TTL pulsing; 5V, 0V, on/off at different rates. The LED was put in there just for a visual...
  11. I'm sure that I'm getting 5V to power my PIC. T

    I'm sure that I'm getting 5V to power my PIC.

    T
  12. I added "TRISB = 0" and still read approximately...

    I added "TRISB = 0" and still read approximately 2.5V at portb.7

    Thanks,
    T
  13. I was wondering about that too, but when you say...

    I was wondering about that too, but when you say "portb.7 HIGH", doesn't that automatically take care of that?

    OR do you still have to define port b as output before the code?

    Thanks,
    T
  14. Yes, with the resistor and LED disconnected, I...

    Yes, with the resistor and LED disconnected, I still read 2V out of the portb.7



    'DEFINITIONS'
    DEFINE OSC 20
    DEFINE ADC_BITS 10 ' Set number of bits in result
    DEFINE ADC_CLOCK 3...
  15. I don't remember... I'll test again and re-post....

    I don't remember... I'll test again and re-post.

    Thanks again,
    T
  16. I am using 18F452, and reading portb.7. It...

    I am using 18F452, and reading portb.7.

    It lights an LED the way it should, but I only read 1-2V.

    Thanks,
    T
  17. What's the voltage on output pin when it's HIGH?

    Hi,

    I was wondering what voltage is produced on an output pin when it is toggled "HIGH"?

    I always assumed it was 5V, but when measuring it was only 1V, I wondered if my meter is off.

    I am...
  18. Replies
    6
    Views
    7,408

    Thanks again for your help, sincerely appreciate...

    Thanks again for your help, sincerely appreciate it.

    (Will experiment)

    Tony
  19. Replies
    6
    Views
    7,408

    Yes, right the pic would be a slave. Here is what...

    Yes, right the pic would be a slave. Here is what I have.

    shiftin latchPin_in, clockPin_in, MSBFIRST, [latch_receive, clock_receive]

    ' clockPin_in is a pin on the pic that is attached to the...
  20. Replies
    6
    Views
    7,408

    The pic would only be receiving clock data and...

    The pic would only be receiving clock data and latch data from the master in my case.

    And then it would only need to send serial data, and (clock data?) back out to the master.

    I'll post my...
  21. Replies
    6
    Views
    7,408

    Replacing shift register with PIC

    Hi,

    I was wondering if it is possible to replace a 4021B (parallel to serial) shift register chip with a PIC using shiftin and shiftout functions?

    I am assuming that I would first need to...
  22. Replies
    10
    Views
    28,399

    Darrel, and FalingTrea thanks. I was wondering...

    Darrel, and FalingTrea thanks. I was wondering about that. Thanks again.

    Tony
  23. Replies
    10
    Views
    28,399

    Thanks for the help, I appreciate it. Would...

    Thanks for the help, I appreciate it.

    Would the 2n2222 work for my application? (i.e. just pulling a 5V wire to ground?) Which transistor would you recommend?

    Thanks again,

    TOny
  24. Replies
    10
    Views
    28,399

    The load is 5V dc. It's just a simple digital...

    The load is 5V dc. It's just a simple digital switch that I want to replace/control with the pic.

    I just need to control the grounding of the "incoming" 5V dc wire.


    If we removed the diode...
  25. Replies
    10
    Views
    28,399

    Thank you. Is it possible to just use a 2N2222...

    Thank you.

    Is it possible to just use a 2N2222 transistor?

    I found this schematic, however my application is a little different. (It got me thinking though):
    ...
Results 1 to 25 of 92
Page 1 of 4 1 2 3 4