Search:

Type: Posts; User: hexreader

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds.

  1. Closed: Re: interfacing IR remote using NEC protocol - mikroc for PIC

    Yes, I have exactly the same problem. It is a software problem, not a hardware problem

    Still working on it....

    May take a long time, as I do not fully understand how the original code was...
  2. Closed: Re: interfacing IR remote using NEC protocol - mikroc for PIC

    You should have left that code where it was. It is complete garbage.

    I am close to a fixed version, but it currently works for one IR remote that I own, but not a second TV remote.

    Not sure if...
  3. Closed: Re: interfacing IR remote using NEC protocol - mikroc for PIC

    Your code seems hopelessly confused.

    You enable RB0 external interrupt and PORTB interrupt on change, yet you handle only interrupt on change.

    Why are you using both sorts of interrupt?
    ...
  4. Closed: Re: interfacing IR remote using NEC protocol - mikroc for PIC

    The project will still not work.

    You have failed to enable RBIE before the while(1) loop.

    What CPU clock frequency are you using?
  5. Closed: Re: interfacing IR remote using NEC protocol - mikroc for PIC

    Shouldn't that be?
    With a ! and a ;
  6. Replies
    6
    Views
    640

    Closed: Re: whats the waveform icon on multi-meter

    What seems like a matching manual is here:
    http://www.papou.byethost9.com/DT830/?i=1

    Seems like a 50Hz 5v p-p square wave output.

    Anything shown on the display would be meaningless, if I...
  7. Replies
    3
    Views
    537

    [SOLVED]Closed: Re: Can baud rate 500 kbps with mikroc pro

    I am only a hobby coder and do not own that PIC, but it seems to me that the answer is yes.

    Datasheet states maximum processor frequency as 64 MHz, so 20 MHz seems really slow.

    I would use...
  8. Closed: Re: ESD problem solved by using aluminium covered floor tiles?

    Reply #15 on this thread might give pause for thought:

    http://www.eevblog.com/forum/chat/does-you-soldering-iron-have-grounded-tip/

    Seems like overkill to me, but it shows mat connection (with...
  9. Closed: Re: ESD problem solved by using aluminium covered floor tiles?

    Yes 100%

    And you would be liable....

    An earthed aluminium floor would be akin to a wet floor as far as electrocution hazard goes

    You are already aware that the ESD mat on the bench has...
  10. Closed: Re: ESD problem solved by using aluminium covered floor tiles?

    As long as nobody puts an earthed chassis on the floor, and as long as nobody wears any kind of shoe other than a 100k Ohm shoe, everyone will be safe and the equipment will be ESD free.

    .... or...
  11. Closed: Re: ESD problem solved by using aluminium covered floor tiles?

    Equi-Potential bonding is the technical term.

    Equipment does not care what potential it sits at, so long as it never sees significantly different potential.

    In the real world, "earth" is the...
  12. Closed: Re: ESD problem solved by using aluminium covered floor tiles?

    The wrist strap should be connected (via suitable resistor) to earth. That is where the controlled discharge happens before work starts.

    Admittedly there is a possible risk of discharge before...
  13. Closed: Re: ESD problem solved by using aluminium covered floor tiles?

    You seem to be forgetting that some, possibly many, shoes are non-conductive. Especially those of vegan employees.

    Something tells me that you are over-thinking the problem.

    Static-safe carpet...
  14. Closed: Re: Need two PWMs from PIC16F18856 microcontroller

    Amazing how I could miss the obvious! That's the solution, thanks FvM.

    This mikroC code seems to work just fine, as far as I can tell:

    // PWM test for PIC18857 using 4MHz internal oscillator...
  15. Closed: Re: Need two PWMs from PIC16F18856 microcontroller

    I now discover that PWM6 and PWM7 share the same timer- timer 2. This means that independent frequencies are not achievable in any obvious way.

    Here is my best attempt so far. Uses...
  16. Closed: Re: Need two PWMs from PIC16F18856 microcontroller

    Not having much luck so far :(

    Seems to be a tougher task than I imagined. Code Configurator tool (MCC) seems to suggest that PWM6 and PWM7 can output what you want to ports A1 and A2, but I have...
  17. Closed: Re: Need two PWMs from PIC16F18856 microcontroller

    I agree with FvM. Software PWM should be no problem, but direct PWM to those two pins may or may not be practical. You have picked a modern PIC, so the chances are higher.

    If I get time, I will...
  18. Replies
    12
    Views
    1,277

    Closed: Re: Please help check over PIC16F18856 C Code

    Wish I knew the answer to those questions, but I am just an amateur coder and just mess around until stuff seems to work. My code did assume power-up values for many ADC registers.

    Don't have the...
  19. Replies
    12
    Views
    1,277

    Closed: Re: Please help check over PIC16F18856 C Code

    Well it seems I did get really bored...

    I simplified ADC set-up and ADC now seems to work.

    No idea if this comes anywhere close to what you want, but here is what I came up with:

    // TEST...
  20. Replies
    12
    Views
    1,277

    Closed: Re: Please help check over PIC16F18856 C Code

    As for the code with ADC added - seems we are back to square 1 with waiting 2 hours for first loop to complete. Don't think ADC code works even after the wait

    If I get desperately bored I may...
  21. Replies
    12
    Views
    1,277

    Closed: Re: Please help check over PIC16F18856 C Code

    OSCFRQ register selects frequency of internal oscillator:
    #define _XTAL_FREQ 4000000

    uint16_t count;
    uint16_t count1;
    uint16_t count2;

    void main(void){

    OSCFRQ = 0x02; ...
  22. Replies
    12
    Views
    1,277

    Closed: Re: Please help check over PIC16F18856 C Code

    You seem to have selected 1MHz internal clock, but set xtal frequency to 4MHz. This will make your delay functions wildly innacurate.

    Does your board use internal oscillator, or external crystal /...
  23. Replies
    12
    Views
    1,277

    Closed: Re: Please help check over PIC16F18856 C Code

    Does not build for me, due to forum mangling the include statement
    I guessed at:
    #include xc.h
    #include stdint.h (brackets removed for forum)


    10% and 30% PWM on A2 works OK, but I was...
  24. [SOLVED]Closed: Re: How to define the line Rb0 to Rb6 = hex (x%10); // no Rb7 pin

    If it helps, I make similar mistakes all the time, but with far less reason. I am retired and have no pressures.

    ... plus it is natural to concentrate on the tough part of the problem, such that...
  25. [SOLVED]Closed: Re: How to define the line Rb0 to Rb6 = hex (x%10); // no Rb7 pin

    @betwixt

    You do all the hard work, I will just sit and nit pick :twisted:



    3. '| (y << 7)' means OR the result above with the value of 'y' shifted seven times to the left, so it is in bit 7...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4