Search:

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

Page 1 of 4 1 2 3 4

Search: Search took 0.07 seconds.

  1. Replies
    68
    Views
    2,037

    Re: GPS Project: PIC18F26K22 or PIC18F46K22

    Page 281 of the K22 PIC has all the settings of the BRGH, BRG16, SPBRGx in relation to the system Clock.

    Also, depending whether you have RS232 driver or not you have to set or reset the BAUDCONx...
  2. Replies
    68
    Views
    2,037

    Re: GPS Project: PIC18F26K22 or PIC18F46K22

    I don't know about other members of the forum, but I got confused.

    Best throw in both codes that work and don't work.

    Do they compile OK?

    Are you sure about your connections?

    Ioannis
  3. Replies
    68
    Views
    2,037

    Re: GPS Project: PIC18F26K22 or PIC18F46K22

    Obviously your picture shows the first piece of code. You Oscilloscope is set for 50ms/div, so your period seems to measure about 110ms.

    Your program is making high for 10ms and another 100ms low...
  4. Replies
    68
    Views
    2,037

    Re: GPS Project: PIC18F26K22 or PIC18F46K22

    PortX=0
    TrisX=xxxx

    Thats all.
    Ioannis
  5. Replies
    68
    Views
    2,037

    Re: GPS Project: PIC18F26K22 or PIC18F46K22

    Depends. If you care about minimum current as is the case in battery operated devices, then yes. Do set them as inputs with proper pull up enabled inside the PIC or a large size output.

    I found...
  6. Replies
    68
    Views
    2,037

    Re: GPS Project: PIC18F26K22 or PIC18F46K22

    No the program itself but on the total current consumption as the CMOS do not like to be float.

    Ioannis
  7. Replies
    68
    Views
    2,037

    Re: GPS Project: PIC18F26K22 or PIC18F46K22

    I have my doubts on leaving inputs floating.

    Usually if I have any unused ports, I turn them as outputs and clear them.

    If they are inputs, maybe enable the pull ups if any or tie them to...
  8. Thread: EEPROM Issue

    by Ioannis
    Replies
    13
    Views
    567

    Re: EEPROM Issue

    Local vars is a dream (and in wish list) for PBP.

    I think with a bit of creativity, structures can be implemented with arrays in PBP also.

    Not specific to data structures though.

    Ioannis
  9. Thread: EEPROM Issue

    by Ioannis
    Replies
    13
    Views
    567

    Re: EEPROM Issue

    This makes me wondering, how can one follow every detail in a large program.

    Too many variables and chances are something will go wrong.

    Ioannis
  10. Replies
    68
    Views
    2,037

    Re: GPS Project: PIC18F26K22 or PIC18F46K22

    This is a bad programing.

    You use a gosub to main but there is no return from the main.

    Delete the line gosub main as there is no point.

    Be very careful with such commands, as it is common...
  11. Thread: EEPROM Issue

    by Ioannis
    Replies
    13
    Views
    567

    Re: EEPROM Issue

    write 132,CB is not correct. You have to write 132,$CB.

    Ioannis
  12. Replies
    68
    Views
    2,037

    Re: GPS Project: PIC18F26K22 or PIC18F46K22

    pause 10 is too little time.

    Maybe you need to make this 1000.

    Then check with a timer that it actually pauses every 1 sec confirming that osc is setup correctly.

    Recently I had similar...
  13. Replies
    4
    Views
    479

    Re: MP3 DFPlayer Mini and PIC MCU

    Are DFPlayer and FN-16 the same one?

    Anyway, here are my snippets using the DFPlayer module:



    'Set volume
    hserout [$7e,$ff,$06,$06,$00,$00,$07,$fe,$ee,$ef] 'Volume 7/30

    pause 500
  14. Replies
    14
    Views
    679

    Re: Current limit for HV Power Supply

    I have such an option for the PWM and the PIC to stop operating in case of a SC.

    But this takes time and the Pass transistor will be burned in the mean time. That is why I have to place the PNP...
  15. Replies
    14
    Views
    679

    Re: Current limit for HV Power Supply

    Will do that and report back.

    The final circuit will be pretty much as the above posted, though it needs a lot of refinement before it gets on a shiny pcb. Mainly for safety of the circuit and...
  16. Replies
    14
    Views
    679

    Re: Current limit for HV Power Supply

    Well, the NPN as you described, and having collector in lower dynamic than the base, makes sense why it does not work.

    But the PNP version does not. Double checked, changed transistors, still...
  17. Replies
    14
    Views
    679

    Re: Current limit for HV Power Supply

    It is set at 31,25KHz and it is filter out by 33K and 220nF.

    In general the supply works great, adjusts from 0 to max Vout, regulates better that my requirements.

    Just no protection so far.
    ...
  18. Replies
    14
    Views
    679

    Re: Current limit for HV Power Supply

    Have not tested that idea. Will short the resistor, but I doubt this is the problem. OK, maybe when the circuit is first started, the output capacitor (10μF) may for a nanosecond overload the...
  19. Replies
    14
    Views
    679

    Re: Current limit for HV Power Supply

    Thanks for the reply.

    Well, the power supply is correct with the P-channel fet. If you check the op-amp configuration the more Vout the less T1 drive. So the Mosfet will conduct less also having...
  20. Replies
    14
    Views
    679

    Current limit for HV Power Supply

    I am designing a HV Power Supply controlled by a PWM signal (from a PIC).

    The problem is that either of the attached circuits for the current limit does not work. Even with no current load, the...
  21. Replies
    4
    Views
    311

    Re: 16F1827 - Slow Clock

    And it does work as expected!

    Thanks Richard.

    Ioannis
  22. Replies
    4
    Views
    311

    Re: 16F1827 - Slow Clock

    Hmm, I did OSCCON=$F0 but at the same time & _PLLEN_ON.

    Does it matter?
    Ioannis
  23. Replies
    4
    Views
    311

    16F1827 - Slow Clock

    Apparently there is something I do not see. And is 3.30 am...

    The following settings make the PIC run at 1/4 the speed it is supposed to.



    #config
    __config _CONFIG1, _FOSC_INTOSC &...
  24. Replies
    120
    Views
    57,445

    Re: PID-filter routine (2nd try).

    Of course this makes sense.

    Thanks,
    Ioannis
  25. Replies
    120
    Views
    57,445

    Re: PID-filter routine (2nd try).

    I suppose this is for Henrik.

    When the ADC read value reaches the Setpoint, should'n the pid_out goto zero instead of staying for ever in a, relatively low, value?

    Ioannis
Results 1 to 25 of 100
Page 1 of 4 1 2 3 4