Search:

Type: Posts; User: Les

Page 1 of 3 1 2 3

Search: Search took 0.05 seconds.

  1. Re: Proton+ generates codes for addresses that do not exist on the PIC18F47K40.

    If you're using Edata, Microchip have also moved the address of eeprom within the K40 and K42 devices, without actually making it known. Even the datasheets don't have the address clearly...
  2. Thread: 18F26K42 status

    by Les
    Replies
    4
    Views
    5

    Re: 18F26K42 status

    Yes. All 128K is available to the compiler.

    Using the Dim as Code for flash memory data storage, instead of Cdata, automatically stores the data in the lower 64K of flash, and code doesn't care...
  3. Replies
    20
    Views
    21

    Re: Problem in pulse per second meter

    Also, use a median filter to iron out some of the fluctuations. A median filter is a simple bubble sort, then choose the middle value from the sort.
  4. Replies
    7
    Views
    1,661

    Re: 16f1503 AND PWM modules

    See:

    PIC16F1503, PIC16F1507, PIC16F1508, and PIC16F1509 HPWM library replacement routine
  5. Les has just uploaded PIC16F1503, PIC16F1507, PIC16F1508, and PIC16F1509 HPWM library

    Les has just uploaded PIC16F1503, PIC16F1507, PIC16F1508, and PIC16F1509 HPWM library replacement routine!

    Until the update is ready, here is an include fie that gives the compiler HPWM for the...
  6. Thread: Preprocessor woes

    by Les
    Replies
    2
    Views
    3

    Re: Preprocessor woes

    The preprocessor has the $define _uart 1, so the code below works as expected:



    Device = 16F690

    $define D_HardSerialNum 2

    $if D_HardSerialNum > _uart
    $error "Incorrect...
  7. Thread: 16f753 DAC

    by Les
    Replies
    1
    Views
    2

    Proton PIC16F753 DAC peripheral routines

    I don't have one of these devices, but the 9-bit DAC looks easy to setup and use, from reading the datasheet.

    Here's a piece of code that you can copy and create an include file named "DAC.inc"
    ...
  8. Re: Them interrupts, them interrupts, they drive me mad!

    You can also get rid of the right shift by 4 Bob, and do the comparisons on the high nibble values. I know this sound pedantic. LOL. But the quicker a piece of code operates within an interrupt, the...
  9. Thread: 18F26K42 status

    by Les
    Replies
    4
    Views
    5

    Re: 18F26K42 status

    I'm busy running the final tests on the devices that Microchip have screwed around with.

    These are the devices that have, either, been added to the compiler, or needed new code in both the...
  10. Re: Them interrupts, them interrupts, they drive me mad!

    I just noticed that OldPos is tested for 0 and 3 twice, so the code needs changing to:



    Context Save

    OldPos = NewPos
    NewPos = (PORTB & 110000)
    NewPos = NewPos >> 4
    If OldPos = 3 Then
  11. Re: Them interrupts, them interrupts, they drive me mad!

    Good to hear Bob, and well done. Isn't learning so much fun? :-)

    If you're using the previously mentioned code example, here's a tip that will speed up the comparisons and optimise the code. This...
  12. Replies
    12
    Views
    13

    Re: Slightly surprised by 18F26K22

    They are also, very, capable of operating at 80MHz, and I've even had them running at 88MHz, which is why those oscillator frequencies are supported in the compiler for 18F devices.

    Declare Xtal =...
  13. Re: Need someone smarter than me to write code for POV displays

    For the RGB LEDS, and the amount of them required, take a look at addressable RGB types, such as the APA102 or APA102C or SK9822.

    These have a fast SPI interface, unlike the WS2812 LEDs which have...
  14. Replies
    20
    Views
    21

    Re: Problem in pulse per second meter

    I couldn't resist, because I need to keep my brain active while I can, so here's the same program for a Common Anode display. Notice the inversions?



    '
    ' A simple pulse counter on the LEDs...
  15. Replies
    20
    Views
    21

    Re: Problem in pulse per second meter

    You have a full program that does the job, so for common anode displays, alter the segment_A to segment_G constants and make some high pins to low pins, or set pins to clear pins, because the only...
  16. Re: Best choice, 18F26K22 or 16F18857 for Mat/Calc. IOC Edge trigger?

    Many, many capacitors as close as possible to any chips on the PCB. Largeer uF electrolytics (10uF or higher, but not in the 100s or 1000s because these can cause voltage drags), and 100nF, and 100pF...
  17. Re: Best choice, 18F26K22 or 16F18857 for Mat/Calc. IOC Edge trigger?

    The simplest way to monitor a battery is to use a voltage divider that will give a correct voltage to the ADC. Then read the ADC several times and median filter it to make it stable. The 8-bit or...
  18. Replies
    7
    Views
    8

    Re: Help needed with programming via GPRS

    The problem with a bootloader is that the existing units will all need to be re-programmed with the bootloader firmware, then the program's firmware. Which can be daunting if there are a lot of them...
  19. Replies
    20
    Views
    21

    Proton Compiler, Pulse Counter with a multiplexed 7-segment LED display

    Here's a simple program I knocked together that counts the pulses on the INT pin (PORTB.0) and displays the pulses per second on 4 7-segment displays.

    It uses an interrupt for the display...
  20. Re: "Microsoft ahead in race to produce a quantum computer"

    But remember, Microsoft were the first to bring a good, professional, GUI based operating system to the masses. Windows 3.1 then, the wonderful, Windows 95.

    It was simply the very, very stupid CEO...
  21. Replies
    10
    Views
    11

    Re: Is Isr EndIsr current?

    In my opinion, high and low interrupts are not required with standard 18F devices in 90% of programs.

    A single interrupt routine can have as many If-Then blocks that ask what caused the interrupt...
  22. Replies
    10
    Views
    11

    Re: Is Isr EndIsr current?

    The ISR_Start and ISR_End directives are for Proton24 only, at the moment. This is because the PIC24 and dsPIC devices have vectored interrupts, so each interrupt has its own place in code.

    The...
  23. Re: Best choice, 18F26K22 or 16F18857 for Mat/Calc. IOC Edge trigger?

    They were great to listen to on the radio when I was a young-un. Especially "Girls Girls Girls" and "A Glass Of Champagne". :-) But they did also sing some crap. LOL. But at least they were...
  24. Replies
    6
    Views
    7

    Re: PIC16F1503 Fixed Voltage Reference

    I'm having this problem with all the new devices that Microchip are bringing out Rick.

    They are changing things in the device, for no real reason, that have been the same for many years, and...
  25. Replies
    8
    Views
    9

    Re: Who has a good eye for design?

    What type of overlay Tim?

    A text overlay of structure for documantation, or case overlay?, or PCB overlay?

    Any one of them and I'll take a look.
  26. Replies
    2
    Views
    3

    Sorry for my absence

    Sorry for my absence on the forum the past week or so, haven't been too well, and I'm now busy putting the finishing touches to a compiler update installation that has modifications to some of the...
  27. [SOLVED !] Re: HRSout code on 16F1777 has problem on 16F1779

    Now this one was a bugger to locate. :-)

    It was due to the official microchip linker files having the incorrect data in them for the start and end address' of Bank 20 in RAM, so the semi-auto PPI...
  28. Les has just uploaded Corrected PPI file for device; PIC16F1779!

    Les has just uploaded Corrected PPI file for device; PIC16F1779!

    This PPI file corrects an anomaly with RAM addresses for device PIC16F1779.

    Unzip, and place the new P16F1779.ppi file within...
  29. Thread: Chip needed

    by Les
    Replies
    11
    Views
    12

    Re: Chip needed

    Wow. A decatron!

    I've seen photos of decatrons, but never actually seen one in reality. I have used nixies and the displays with incandescent lamps as the digits, in the past, but never a dectron....
  30. Replies
    2
    Views
    3

    Re: Problem with Bitwise Shift Right

    Here's an update patch to correct that anomaly:

    Update patch for Proton24 to version 1.0.4.9
  31. Les has just uploaded Update patch for Proton24 to version 1.0.4.9!

    Les has just uploaded Update patch for Proton24 to version 1.0.4.9!

    A patch for the Proton24 compiler to bring it up to version 1.0.4.9

    The patch corrects the following items:

    Corrected a...
  32. Thread: Chip needed

    by Les
    Replies
    11
    Views
    12

    Re: Chip needed

    Why not use logic switchable N and P channel MOSFETs Charlie.

    P channel for the Cathodes (high side switching) and N channel for the Anodes (low side switching). Then you can choose the MOSFETs...
  33. Replies
    9
    Views
    10

    Re: Cread on 14 bit core

    Move away from the standard 14-bit core devices George.

    They are now, very much, out off date, and even Microchip have quite a few of them in the "legacy" list, which means they are going to drop...
  34. Les has just uploaded Update patch for Proton24 to version 1.0.4.8!

    Les has just uploaded Update patch for Proton24 to version 1.0.4.8!

    A patch for the Proton24 compiler to bring it up to version 1.0.4.8.

    The patch corrects the following item:

    Corrected a...
  35. Re: johngb has just uploaded Proton Macro Generator Source Code!

    Many Thanks John.

    It will help to keep it in circulation and users out there who want to change things, can. But only as long as they give the original author credit.

    Personally John, I find...
Results 1 to 35 of 100
Page 1 of 3 1 2 3