Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Thread: Random PBP

    by Michael
    Replies
    14
    Views
    5,025

    Re: Random PBP

    This is an older post I searched because I need to generate a random number and saw you can do it with a word variable. Like this fella, I need a smaller number.

    I'm having a hard time grasping...
  2. Replies
    0
    Views
    287

    SEROUT sending data to python script

    I'm desperate so thought I'd ask here, if anyone is also familiar with python. Using a PI to read data from a pic.

    Everything works fine as long as I have the serial port in this loop --

    def...
  3. Thread: Read from pic?

    by Michael
    Replies
    1
    Views
    471

    Read from pic?

    This may be a stupid question as I have never had the need to do it but I have a programmed pic that I didn't copy protect and want to (possibly) see the code I used for it.

    When you read a hex...
  4. Replies
    3
    Views
    649

    Re: SEROUT loop with pause

    Ok thanks. Yeah, I can't remember but it may have been a VB.net program that I needed to slow down the loop to keep it from hogging the cpu. I have the python script reading the PIC, so I may take...
  5. Replies
    3
    Views
    649

    SEROUT loop with pause

    Force of habit or maybe there was a reason I put a pause after serout in a loop. I know that I discovered the hard way that I needed to do that in Python to keep the cpu from working too hard (and a...
  6. Replies
    8
    Views
    2,627

    Re: 16f1847 hserout

    Fellas --

    Is there any way to simply flip a byte so that MSB becomes LSB or vice versa?
    Can't remember what the default is but I need to reverse it (or redo my *^% switches).

    Thanks.
  7. Replies
    8
    Views
    2,627

    Re: 16f1847 hserout

    3.3v seems to be working well so far. I breadboarded the pic feeding into the PI uart.
  8. Replies
    8
    Views
    2,627

    Re: 16f1847 hserout

    Thanks.
    My ultimate goal is to interface a 16F1847 to a Raspberry PI 3B with RS485. The PI UART though needs 3.3v but I do see that the 16F1847 will work at 3.3V ? Can anyone verify that it...
  9. Replies
    8
    Views
    2,627

    16f1847 hserout

    Hello Folks -- going to (hopefully) use a 16F1847 with HSEROUT. Always have used the software SEROUT before so this is new territory.

    To possibly save time, could someone tell me the commands to...
  10. Replies
    1
    Views
    1,801

    1st time with battery -- 12F508

    In all my years, never tried to run a pic with a battery. Have some 12F508 and will use a couple of AAA batteries.
    It's for an outdoor project and the pic will only power up with a water level...
  11. Replies
    6
    Views
    5,020

    Re: Virtual breadboard?

    Well, what I mean is a simulator that actually ties into a programmed microcontroller. Knew about the analog simulators and tried a few but something that actually sees code and all the peripherals. ...
  12. Replies
    6
    Views
    5,020

    Virtual breadboard?

    I don't have a clue on some advanced things that may be available and have always wondered about simulating simple picbasic projects without going through the processes of actually using the chip. I...
  13. Thread: VS1838B remote

    by Michael
    Replies
    18
    Views
    5,471

    Re: VS1838B remote

    Thanks Ioannis. That pdf will be my reading later. I may want to do more sophisticated RC stuff also.
    This simple on/off is working great -- only sees NEC remotes. Tried others and no go which is...
  14. Thread: VS1838B remote

    by Michael
    Replies
    18
    Views
    5,471

    Re: VS1838B remote

    it's working fine but I added leader = 0 to clear it out (duh)
    should have thought of that.
    I need to put the breadboard in the sunshine and see if it stays stable.
    if not, I'll just add his...
  15. Replies
    4
    Views
    1,873

    Re: 12F508 config -- going nuts

    Needed IntRC

    not INTRC

    Ridiculous.

    I spend half my time configuring new chips. Writing code is the easy part.
  16. Replies
    4
    Views
    1,873

    Re: 12F508 config -- going nuts

    I'm just using it to do some simple I/O stuff so 12F508 will be fine. Would appreciate a time saver if anyone can tell me for the osc, I tried em all --

    #config
    __config _? tried...
  17. Replies
    4
    Views
    1,873

    12F508 config -- going nuts

    Thought I'd buy this chip because digikey had so many in stock and search results seemed to make it popular in the 8 pin low cost pics (unless someone has a better idea). Started off using 12f675...
  18. Thread: VS1838B remote

    by Michael
    Replies
    18
    Views
    5,471

    Re: VS1838B remote

    Pulsin works great. Heck, I just used the first part of that rentron code and did this with it --
    I get a perfect momentary on/off with a bit of needed pause.


    Main:
    PULSIN PORTB.0,0,Leader ...
  19. Thread: VS1838B remote

    by Michael
    Replies
    18
    Views
    5,471

    Re: VS1838B remote

    I found that Rentron code. Wow. It's all there and well commented -- I'll try it out. His comments really spell it out and teach.
  20. Thread: VS1838B remote

    by Michael
    Replies
    18
    Views
    5,471

    Re: VS1838B remote

    Never used pulsin. So if I knew the pulse width of the 38khz signal, I can compare it to a result pulsin gives? I just read something where it says it measures just one pulse, either low or high...
  21. Thread: VS1838B remote

    by Michael
    Replies
    18
    Views
    5,471

    Re: VS1838B remote

    I remember the Rentron stuff -- excellent. Thanks for that code, I'll look into it and play with pulsin. It should be more accurate sounds like.

    It's working 98% of the time but alas, that isn't...
  22. Replies
    2
    Views
    1,510

    Re: Pickit3 12C508A won't connect -- MPLAB IPE

    12 "C" 508

    I'm an idiot -- ordered wrong part.
  23. Replies
    2
    Views
    1,510

    Pickit3 12C508A won't connect -- MPLAB IPE

    I've been using my pickit3 with mplab ipe and all has been perfect using 16F1847.

    Why in the world can't I connect when I choose 12C508A? The connect button stays grayed out.

    But when I go...
  24. Thread: VS1838B remote

    by Michael
    Replies
    18
    Views
    5,471

    Re: VS1838B remote

    Presto -- thought I had the count set at 10 (was 20) -- working great now.
    Like the way I have conversations with myself on the forum? :)

    Kind of a cool way to use these ired units for a simple...
  25. Thread: VS1838B remote

    by Michael
    Replies
    18
    Views
    5,471

    Re: VS1838B remote

    Bummer. Never used COUNT before, maybe I'm missing something?

    CT VAR WORD

    COUNT portb.5, 1000, CT
    IF CT > 10 then
    HIGH porta.7
    CT = 0
    ENDIF
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4