Search results

  1. F

    Learning from Arduino. Three LCD Libraries for the M2 & X2 chips

    I have uploaded these three ports of the Arduino liquidcrystal LCD library to the PICAXE chips: For driving character LCDs in 8-bit mode https://picaxeforum.co.uk/threads/lcd-library-lcd_lib-8bit.33077/ For driving character LCDs in 4-bit mode...
  2. F

    LCD LIbrary PCF8574 I2C

    This is a port of the Arduino LiquidCrystal LCD library to the PICAXE to drive text-based LCDs using the PCF8574 bassed I2C backpack. It can be used with the all the M2 & X2 chips. To use it: 1. Download the files 2. Extract the library files and example programs from the zip file into a...
  3. F

    LCD LIbrary LCD_LIB-4bit

    This is a port of the Arduino LiquidCrystal LCD library to the PICAXE to drive text-based LCDs using their 4-bit mode. It can be used with the 14M2, 18M2, 20M2, 20X2, 28X2 & 40X2 chips. To use it: 1. Download the files 2. Extract the library files and example programs from the zip file into a...
  4. F

    LCD LIbrary LCD_LIB-8bit

    This is a port of the Arduino LiquidCrystal LCD library to the PICAXE to drive text-based LCDs using their 8-bit mode. It uses an 8-bit port so it can only be used with the 18M2, 20M2, 20X2, 28X2 & 40X2 chips. To use it: 1. Download the files 2. Extract the library files and example programs...
  5. F

    FYI for Rev-Ed: Broken link on picaxe.com

    I spotted this broken link on the PDF button for the Grove board
  6. F

    ANNOUNCE: LDmicroPB: A graphical editor for writing ladder logic programs for the PICAXE chips

    I have posted a project LDmicroPB which is my port to the PICAXE chips of the open source GUI ladder program editor LDmicro.
  7. F

    LDmicroPB: A graphical editor for writing ladder logic programs for the PICAXE chips

    LDmicroPB is my port of LDmicro to the PICAXE chips. It allows you to use a GUI editor to write programs using ladder logic and then compile your ladder program to PICAXE BASIC code that can be downloaded into the PICAXE chips using PE. I only support the current M2 & X2 chips. My intention is...
  8. F

    Is there any way for the program to determine what the current SETFREQ setting is?

    I'm working on some library code. I'd like to make it as self configuring as possible so I'd like the code to be able to cater for different SETFREQ settings in the main program. I'm aware of the predefined constants _08M2, _14M2, etc that enable the code to determine the PICAXE chip. Does...
  9. F

    Is there a way to include the " character in a! string constant?

    Is there a way that the " character can be included in a string constant? e.g. to send the string "Hello World!" including the double quotes. In other languages there is a escape character that can be included in a string constant. If the escape character was a backslash then the " character...
  10. F

    This generic black PCF8574 I2C LCD backpack uses pin 11 to control the backlight

    A while ago I bought one of these generic black PCF8574 I2C LCD backpacks on ebay: A couple of days ago I went to use it for the first time with an 18M2 chip and a 16x2 LCD. I connected power and I got the expected line of blocks on line 1. So I got AlleyCat's 'I2C Bus Search' program from...
  11. F

    Do Rev-Ed provide any documentation for PICAXE VSM describing which BASIC commands are not supported and which chip features are not simulated?

    I've just tried to test my first program for the 20X2 in PICAXE VSM and immediately got the following two errors: tmr3setup command not supported Background 'hserin' receive cannot currently be simulated! Do Rev-Ed provide any documentation for PICAXE VSM describing which BASIC commands are...
  12. F

    Announce: Using Sandwich Delays to schedule timed tasks in super loops on X2 chips

    I have posted a project Sandwich Delays. A technique to improve the scheduling of timed tasks in super loops on X2 chips that shows how to use a technique called "sandwich delays" to perform the scheduling of tasks at precise intervals even when the duration of the task is not know or when the...
  13. F

    Sandwich Delays. A technique to improve the scheduling of timed tasks in super loops on X2 chips.

    The problem A lot, if not most, PICAXE applications use a super loop architecture. It has the advantages that it is simple, and therefore easy to understand, and that it consumes virtually no system memory or CPU resources. It has the limitation that it is very difficult to execute a task at...
  14. F

    FYI for RevEd. Link went to a very odd page for me

    I went to the page ... [REDACTED]
  15. F

    I'd like to buy PICAXE VSM but I'd like to find out about updates before I do.

    I've convinced myself that buying PICAXE VSM would be good value for me but the latest versons of the downloads for the VSM software and the Model Patch 4.05 are both pretty old. - The download page lists the Update Service Date for PICAXE VSM as being 1 November 2011. - The most recent dates on...
  16. F

    Setting an interrupt on the timer 0 overflow appears to cause a hardware interrupt at 8x the timer interrupt frequency

    I am attempting to implement a cooperative task scheduler, as described in the book Patterns for time-triggered embedded systems by Michael J. Pont, on the X2 chips and for this I need: 1) to be able to put the chip to sleep, and 2) a timer interrupt that will wake the chip from sleep and that...
  17. F

    Simulation Bug?: Timer interrupt does not wake 20X2 simulation from the "DOZE 0" command.

    I've just been using the X2 timer interrupt for the first time and struck this behaviour in simulation. I'm using PE v6.1.0.0 The simulation is run with a delay of 30ms because this allows you to see the line of code that is being executed. The timer settings are set so that the timer interrupt...
  18. F

    How can I detect when a period of 10ms to 100ms has elapsed?

    I'm working on a project to convert ladder logic to run as PICAXE basic code and from the little google research I've done it appears that historically PLCs have run ladder logic code using a fixed cycle time with typical cycle times being in the 10ms to 100ms range. The program structure I'm...
  19. F

    Is there a way to replace substrings in macros with parameters instead of full words?

    Does anyone know of a technique I can use to get the parameters to replace substrings inside macros instead of complete words? I had two instances were I would have liked to do this. 1) To generate two different labels for each macro using just one parameter: #MACRO macro#1(label, variable)...
  20. F

    AXE133 ported to 14M2 using hardware UART needs no delay between chars upto 4800 baud

    AXE133 ported to 14M2 using hardware UART needs no delay between chars upto 9600 baud EDIT (2/5/2017): Updated version 3.0 of this code capable of operating at 9600 baud is available from post #2 EDIT (3/5/2017): Replaced the circuit attachment. The original circuit had a mistake, pin 1 was not...
Top