Search:

Type: Posts; User: Les

Page 1 of 3 1 2 3

Search: Search took 0.05 seconds.

  1. Replies
    13
    Views
    14

    Re: Convert Integers to Float

    As John has correctly stated, the transfer of the contents from one type of variable to another is a standard operation done by the compiler. This is normal on all the standard BASIC languages. The...
  2. Replies
    17
    Views
    18

    Re: 3D printer. Yey!!!!

    The friend who is buying the Printer for me has recommended Fusion360. Apparently it is free to use for personal use, and is quite good.

    He's used it for a year or so, and some of the things he's...
  3. Replies
    17
    Views
    18

    Re: 3D printer. Yey!!!!

    The Printer ordered is the Creality3D Ender:

    https://www.gearbest.com/goods/pp_009672231220.html

    I will need to add a bed leveler, but that's something I did for my CNC machine a few years ago,...
  4. Replies
    2
    Views
    3

    Re: Problem with TO bit of RCON

    Thanks Alberto.

    I had totally forgot the RCON, when I used the default nop routines at the start of the program.

    What the compiler does is replace a Nop with a Clrwdt in its library routines if...
  5. Replies
    17
    Views
    18

    Re: 3D printer. Yey!!!!

    20 per 1Kg is way too expensive for me.

    I have found 1.75mm filament for a lot less money:
    ...
  6. Les has just uploaded Proton Compilers Full Installer (Mk2) - Proton 3.6.2.3 - Proton

    Les has just uploaded Proton Compilers Full Installer (Mk2) - Proton 3.6.2.3 - Proton24 1.0.5.3!

    Let's try again, and this time it has been tested on Windows 10 and Windows 7. :-)
    Thanks for...
  7. Replies
    12
    Views
    13

    Re: Pulse counter memory problem

    That is, essentially, how true professional eeprom access is done Joseph. The address for the writes and reads is cycled around so that the write cycles for the eeprom are lengthened many thousands...
  8. Replies
    17
    Views
    18

    Re: 3D printer. Yey!!!!

    I can't wait until it arrives, as I have so many ideas :-)

    I did 3D design a few years ago when I designed the Amicus18 board and its documentation, so it is not a stranger to me, but it will be...
  9. Replies
    17
    Views
    18

    3D printer. Yey!!!!

    A dear friend of mine has just ordered a 3D printer for me, because I was admiring his, but couldn't justify buying one now. :-( They have really come up in quality over the past few years, and I...
  10. Replies
    12
    Views
    13

    Re: Pulse counter memory problem

    That's exactly the way with eeprom Bob.

    It's something I'm contemplating building into the eeprom writing routine of the compiler. Read eeprom from the address give, and if the same as the byte...
  11. Les has just uploaded Proton Compilers Setup 3.6.2.3 - 1.0.5.3!

    Les has just uploaded Proton Compilers Setup 3.6.2.3 - 1.0.5.3!

    Setup the Proton compiler to version 3.6.2.3
    Setup the Proton24 compiler to version 1.0.5.3

    Corrected a few anomalies within the...
  12. Replies
    5
    Views
    6

    Happy Birthday AlbertoFS

    Many happy returns Alberto.

    I hope you had a really good day.
  13. Replies
    2
    Views
    3

    Re: support for the 16F18455 and the 16F18456

    Yes, but they take time and concentration to create, because you never know what Microchip have messed around with now within new devices.
  14. Replies
    5
    Views
    6

    Re: Sensitive Reflective Light Sensor

    Apparently, the sensor is so sensitive, it can detect the difference when water is the medium, instead of air.
  15. Re: uConfig reads pdf and creates PCB schematic

    The trouble with that, is that now most of the datasheets do not have a full description of the pins on the circuit component diagram, but have a list of them later in the datasheet.

    Sorry, but...
  16. Replies
    5
    Views
    6

    Sensitive Reflective Light Sensor

    This might interest Tim.

    Ebay Reflective Light Sensor

    And an article here:

    Reflective Light Sensor Article

    They look interesting, but are rather expensive at 5 per sensor, so that's me...
  17. Replies
    1
    Views
    2

    Re: Good to see Microchip is doing well

    But, "too many eggs in the same basket" has been the demise of quite a few companies in the past. It also, dramatically, reduces the quality of the products, because money comes first and quality...
  18. Replies
    10
    Views
    11

    Re: HBUSIN stops program?

    Also remember, there is no real benefit in using the Hbus commands, and I truly wish I had not placed them into the compiler, because the of the mess Microchip have made of their peripherals over the...
  19. Thread: 1 Mhz generator

    by Les
    Replies
    4
    Views
    5

    1MHz Square Wave generator using the PWM peripheral

    Here's a setup that will generate a 1MHz square wave output from the CCP1 peripheral, and operate in the background, using a 64MHz fOSC:



    '
    ' Setup the CCP1 peripheral to give a 1MHz 50% duty...
  20. Replies
    9
    Views
    10

    Re: SPI to MX25L4006E Flash PROM

    Excellent info George, thanks.

    I'll take a look and make some changes. Now.... Every penny counts.
  21. Replies
    10
    Views
    11

    Re: New dual core dsPIC33CH PIC

    See page 439 of the datasheet:


    The instruction cycle is a division of 2.

    Also, page 1 of the datasheet:
  22. Replies
    2
    Views
    3

    Re: Assembler errors on V3.6.1.7

    Sorry Frizie.

    Again, it's Microchip not making their mind up and changing directive names on some devices, even in their XML device files. :-(

    Open up the device's PPI file and find the block:...
  23. Replies
    1
    Views
    2

    Re: Fusion v7 Demo board LCD test

    I don't have a Mikro board, but from memory, their boards are so multiplexed, most people have had problems with simple processes over the years with them.

    Check the circuit of the board and make...
  24. Replies
    18
    Views
    19

    Re: Inexplicable fault. Any tips?

    Totally agree with See_Mos.

    Use a few high and low commands to drive the pins with logic levels, and see if the motor turns clockwise, anticlockwise and stops. Also, check the frequency of the PWM...
  25. Re: Compiler give error if more than 50 times is used directive "Include"

    Really Charlie!!!!

    How on earth can, or why, would they do that? A Byte's real name is an Octet. i.e. 8 Tetras, which are bits. Signed bytes are 2's complimented 8-bits, and always have been, and...
  26. Re: Compiler give error if more than 50 times is used directive "Include"

    The maximum I can do, without having to re-write a lot of the compiler, is a maximum of 99 include files. The compiler's loader parser and compile parser looks for only 2 digits in the include file's...
  27. Thread: EEPROM write time

    by Les
    Replies
    8
    Views
    9

    Re: EEPROM write time

    External eeprom is very different to the internal eeprom.

    The Ewrite and Eread commands are purely for the internal eeprom. External eeprom has either an SPI or I2C interface and work from the I2C...
  28. Replies
    12
    Views
    13

    Re: Electromagnetic display

    Interesting displays, but crickey! what a price for a single display!

    A white LED display will give the same results, but for a fraction of the price, and can be used at a usable Voltage. LOL 19...
  29. Thread: PORT INDEX help-me

    by Les
    Replies
    13
    Views
    14

    Re: PORT INDEX help-me

    You can pass a variable holding a Port's bit to a subroutine, so the subroutine can manipulate more than a single Port.Bit.

    Manipulating the Port's bit is slower using the variable, because a...
  30. Thread: EEPROM write time

    by Les
    Replies
    8
    Views
    9

    Re: EEPROM write time

    The compiler's library routine does the waiting for you.

    In the library's __eewrite_ routine, it performs a loop to wait for the WR bit to clear:

    btfsc EECON1 ,PP_WR
    bra $ - 2
  31. Re: Compiler give error if more than 50 times is used directive "Include"

    OK. I'll see what I can do, but, IMO, 50 include files is far too many. LOL
  32. Thread: PORT INDEX help-me

    by Les
    Replies
    13
    Views
    14

    Re: PORT INDEX help-me

    Take a look in each device's .def file, and you'll find:



    '-----------------------------------------------------------------------------------
    ' Pin Numbers for PORTA
    '
    $define Pin_A0 0...
  33. Les has just uploaded Proton 18F optimiser application update.!

    Les has just uploaded Proton 18F optimiser application update.!

    An update to the Proton 18F optimiser.

    AlbertFS found an anomaly where a STATUS.1 SFR bit has a comma missing with 18F devices...
  34. Thread: New directives

    by Les
    Replies
    2
    Views
    3

    Re: New directives

    Not really George, but $SendError is part of the main compiler, while $error is part of the preprocessor.

    I added them to the compiler to make them more compatible with each other, and to...
  35. Thread: PORT INDEX help-me

    by Les
    Replies
    13
    Views
    14

    Re: PORT INDEX help-me

    See SetPin and ClearPin in the manual:



    Device = 16F877
    Declare Xtal = 20

    Dim MyPortPin As Byte

    Low PORTA
Results 1 to 35 of 100
Page 1 of 3 1 2 3