Search Results - MEL PICBASIC Forum


Search:

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

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    4,373

    Re: problem with toggle command

    Something I ran into also. Has something to do with reading state of pin for toggle, a problem if pin is set to analog, I think. Anyway, a simple reliable method to toggle a pin is to add 1 to the...
  2. Thread: RTC take two

    by SUNFLOWER
    Replies
    4
    Views
    3,042

    Re: RTC take two

    And if you want to add to time values from DS1307 then convert to decimal before addition --

    sec = (RTCsec >> 4)*10 + (RTCsec & $F)
  3. Thread: RTC take two

    by SUNFLOWER
    Replies
    4
    Views
    3,042

    Re: RTC take two

    I made a typo error above

    should be --

    second = (sec >> 4)*16 + (sec & $F)
  4. Thread: RTC take two

    by SUNFLOWER
    Replies
    4
    Views
    3,042

    Re: RTC take two

    second is variable value which displays sec digits when second is displayed as hex number.

    second = (sec >> 1)*16 + (sec & $F) to convert time number sec to hex value second that displays time...
  5. Replies
    6
    Views
    4,064

    Re: RTC - Strange readings

    rtchour = sethour

    If sethour is 12 noon then rtchour must be a hex value that creates the digits 12
  6. Replies
    6
    Views
    4,064

    Re: RTC - Strange readings

    Perhaps this will help. Note input time number in hex --

    hserin [hex2 wb1]


    Clock_set:

    GOSUB GET_TIME

    hserout [ "0 second ",hex sec,13,10]
  7. Replies
    6
    Views
    4,064

    Re: RTC - Strange readings

    I use DS1307 a lot and it must be super reliable for years, otherwise concentrator sunlight could start fires or melt rocks. I have not read your code but have experience strange RTC behavior and...
  8. Replies
    9
    Views
    4,877

    Re: Pic18f452 pwm1 and pwm2 help

    I had that problem caused by the configs of tiny bootloader, redirects HPWM2 to another pin on 18F4620...

    ' __CONFIG _CONFIG3H, _MCLRE_ON_3H & _PBADEN_OFF_3H ; & _CCP2MX_PORTBE_3H ;...
  9. Re: 18F family, 40 pin PIC with 64K flash memory - 5v - suggestions please

    I have used many 18F4620 for huge programs. Love the chip.
  10. Replies
    17
    Views
    8,380

    Re: Shuffling variables

    if azMotor then

    azMotor_A = m1_ina '14 PORTD.6 ' Digital I/O PORT D.0 - D.7 NUMBERED 8 - 15

    azMotor_B = m1_inb '13 PORTD.5

    else

    azMotor_A = m1_inb ' Software...
  11. Replies
    17
    Views
    8,380

    Re: Shuffling variables

    It is possible to use variables to name ports then change variable values to change ports. copied from my program --

    http://www.harbornet.com/sunflower/PCB.pbp


    ' The PORTL and PORTH...
  12. Replies
    13
    Views
    9,653

    Re: Trouble with DS1307 battery backup

    Very interesting. I did not know about DS1370 battery voltage sensitivity. I used long-life CR 1620 for 10 year clock service and never checked battery voltages with a meter. Something to...
  13. Replies
    13
    Views
    9,653

    Re: Trouble with DS1307 battery backup

    A schematic showing DS1307, never had trouble except once when a circuit mistake overheated the voltage supply and the clock with battery gave similar data.
    ...
  14. Replies
    17
    Views
    8,877

    Re: TOGGLE will not go LOW

    According to data sheet 18F4620 making one port analog makes all smaller number ports analog which interferes with TOGGLE. IF AN5 is analog then AN0 thru AN4 are also analog, like a pyramid. TOGGLE...
  15. Replies
    16
    Views
    8,907

    Re: Storing hours and minutes into single byte?

    If you can live with 2 second resolution then there are 43200 2-seconds per day -- one word.
  16. Replies
    5
    Views
    3,062

    Re: Current Measuring

    Many HBridge drivers have motor current sensing (0-5 V) pin outputs --

    ' Dual VNH5019 Motor Driver HBridge http://www.pololu.com/docs/0J49/all

    ' Dual MC33926 Motor Driver HBridge ...
  17. Replies
    5
    Views
    4,002

    Re: HPWM with zero duty cycle on PIC18F2550

    if dutycycle left > 32777 then
    dutycycleleft = 0
    elseif dutycycle left > 255 then dutycycleleft = 255
    endif

    Or whatever -- HPWM value must be 0 to 255.
  18. Replies
    5
    Views
    4,002

    Re: HPWM with zero duty cycle on PIC18F2550

    if dutycycle left > 255 then
    dutycycleleft = 0
    endif

    Or whatever -- HPWM value must be 0 to 255.
  19. Replies
    6
    Views
    6,112

    Re: Dual-axis solar tracking

    ' Printed circuit version --
    ' http://www.harbornet.com/sunflower/PCB.jpg
    ' http://www.harbornet.com/sunflower/PCB.pbp
  20. Thread: using DS1307

    by SUNFLOWER
    Replies
    16
    Views
    9,148

    Re: using DS1307

    I wrote a program for 18F4620 that reads time and date from DS1370 and then calculates sun position for users latitude, see Get_Path:

    Code = http://www.harbornet.com/sunflower/PCB.pbp ...
  21. Thread: DS1307 issue

    by SUNFLOWER
    Replies
    9
    Views
    5,487

    Re: DS1307 issue

    I saw the same time numbers awhile ago. The problem came from an accelerometer connected reversed power and ground causing voltage regulator stress. Problem cleared without damage after sensor was...
  22. Replies
    4
    Views
    2,575

    Re: Downward compatibility PBP versions.

    OK. That makes sense. So, excepting new features, both will produce the same hex file from the same source code?
  23. Replies
    4
    Views
    2,575

    Downward compatibility PBP versions.

    I have posted solar tracking code as open source to be compiled with PBP version 2.60A.

    My question (from others), Are the latest versions of PBP 100% downward compatible with version 2.60A?
    ...
  24. Replies
    5
    Views
    4,578

    Re: Power Control (PCON) Register

    Thanks Dick, I am now using this info to control a field of solar micros to stow with central power control -- RCON.1
  25. Replies
    13
    Views
    5,679

    Re: whats happened to this forum

    This has been the most helpful forum I have ever visited, sometimes absolutely buried in good solutions. We have made tremendous progress with open source pic basic programs. Our published listings...
Results 1 to 25 of 60
Page 1 of 3 1 2 3