Search Results - MEL PICBASIC Forum


Search:

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

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    6,763

    Re: SPI hardware communication issue

    My thanks goes to Richard for his help. But as a benefit to anybody else struggling with this, my corrections to my code are as follows:

    I can confirm that CLKOUT configuration line was the...
  2. Replies
    6
    Views
    6,763

    Re: SPI hardware communication issue

    I uploaded that code before work and can confirm it worked perfectly, now to study it when I get home and understand where my mistakes are in my original code.

    Thank you for your help.
  3. Replies
    6
    Views
    6,763

    Re: SPI hardware communication issue

    Hi Richard,

    Thank you for the response, and thank you for the working example.

    I shall review it tomorrow after work.

    Just for reference what PIC did you use with that code?

    Many thanks.
  4. Replies
    6
    Views
    6,763

    SPI hardware communication issue

    Hello,

    Can I have some guidance, I have written the code below to drive a set of LEDs attached to a SN74HC595, I am using a PIC16F1825 to drive the SN74HC595.

    3 LEDs are attached to the...
  5. Replies
    2
    Views
    2,736

    Re: PIC16F1825 unable to Light an LED

    Thank you for the response.

    Ok. I thought that setting the OSCCON register to use the internal oscillator would have automatically freed those pins up. Right when I am home later I will look at...
  6. Replies
    2
    Views
    2,736

    PIC16F1825 unable to Light an LED

    Hello

    I can't seem to find a reason why I am struggling to light an LED tied to Pin 2 (MCE, PORTA.5) of a PIC16F1825.

    I have checked the polarity of the LED and also changed it out for LEDs...
  7. Replies
    4
    Views
    3,365

    Re: cycle length to do various tasks

    That program was an interesting read thank you. It certainly makes me think I should consider learning some assembly code, to allow me to control the number of cycles of time critical programs and...
  8. Replies
    4
    Views
    3,365

    Re: cycle length to do various tasks

    Darrel

    I am effectivly trying to produce a PWM signal to control a servo, I know there is lots of examples out there already, but I want to use the timers to control the time the pulse is high...
  9. Replies
    4
    Views
    3,365

    cycle length to do various tasks

    Below is an extract from a piece of code, it is an interrupt routine triggered by TMR2 to produce a single pulse of a set length controlled by the PR2length byte sized variable. This uses Darrel...
  10. Thread: TMR1 issue

    by Lestat
    Replies
    6
    Views
    5,707

    Re: TMR1 issue

    Success!

    Henrik Thank you very much for your assistance. It looks like I need to spend more time and effort looking at and analysing my configuration registers. Though as you suggested it appears...
  11. Thread: TMR1 issue

    by Lestat
    Replies
    6
    Views
    5,707

    Re: TMR1 issue

    I have put an extra LED into the circuit to monitor whether the Analogue Interrupt is being triggered, this LEDstatus1 (analogue interrupt sub program) does not seem to toggle. This leads to believe...
  12. Thread: TMR1 issue

    by Lestat
    Replies
    6
    Views
    5,707

    Re: TMR1 issue

    I am using a PIC12F683. Initially I had the voltage divider attached to AN0 but it is now connected AN1 and I changed the code to allow it to function while connected to that pin.

    I didn't realise...
  13. Thread: TMR1 issue

    by Lestat
    Replies
    6
    Views
    5,707

    TMR1 issue

    I'm trying to write a sample piece of code to explore the use of TMR1, I have TMR1 overflowing and triggering an interrupt which works. Though I appear to have an issue with setting up the Preload of...
  14. Re: New to programming and am having a few issues with some code

    Success.

    Thank you to everyone for all your help.

    I've posted the working code as an example for anyone who wants to use it as an example.



    Right onto its next stage of its evolution.
  15. Re: New to programming and am having a few issues with some code

    My apologies, I thought that previous comment was about the initial target potentiometer and not the current (feedback) potentiometer

    So I'll have to reset the go/done bit. Thank you very much
  16. Re: New to programming and am having a few issues with some code

    Mackrackit - thanks for the link its very useful reading.




    I appear to be getting close now.

    The LEDs now light as expected. Which is good news. I temporary added a piece of code to turn...
  17. Re: New to programming and am having a few issues with some code

    I tried the resistor and the LED separately, with your help and looking through the datasheet again it does seem that it is the configuration settings.

    Demon
    - I was initally going to use...
  18. Re: New to programming and am having a few issues with some code

    Yes the LED is sourcing the current to the LED, which is exactly the same as the other LEDs. which do light up depending on the position of the potentiometers.

    many thanks
  19. Re: New to programming and am having a few issues with some code

    I have made the suggested changes to the program. depending on the position of the potentiometers when the power is applied to the circuit, one of the direction LEDs lights up. If both of the...
  20. Re: New to programming and am having a few issues with some code

    Thank you for the feedback so far.

    I am work at the moment so I can not impliment the suggestions until later today,I will give feedback on any results in due course.

    Dave - at the moment it...
  21. New to programming and am having a few issues with some code

    Hi

    I'm having a few issues with some code I have written, it compiles with no errors but I am not getting the response that I expect.

    All of the outputs are being simulated with LEDs and are...
Results 1 to 21 of 21