Search results

  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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)...
  6. 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...
  7. F

    AXE133 code for 18M2 using hardware UART needs no delay between chars up to 9600 baud

    I have modified the RevEd AXE133 code for the 18M2 to use the hardware UART instead of the SERIN software serial command. Running at 32MHz a serial backpack using this code can keep up with serial commands sent up to 9600 baud. It does not need a delay between each character sent, as the code...
  8. F

    Question for RevEd. Is it OK to post modified versions of the AXE133 software?

    I wanted to get some hands-on experience driving 16x2 LCD displays so first I modified the AXE133 code to use the hardware UART. Using buffered serial in the background the 18M2 AXE133 program is able to keep up with serial commands at 9600 baud. i.e. for baud rates up to 9600 baud the sender...
  9. F

    Better atan approximations

    I was looking for a better atan approximation and I have come up with the following three. They all work in exactly the same way as the X2 builtin atan function: They provide an arctan function for angles between 0 and 45 degrees. The same coding system is used for the input value. The value...
  10. F

    How to read the 08M2 timer register for the "time" command

    How do I read the 08M2 timer register for the "time" command? I was hoping to read the 08M2 PIC timer registers that are used for the "time" command, as described in this post by AlleyCat...
  11. F

    Using a LED as a Light Sensor - Example Program

    LEDs are also photodiodes plus they have some internal capacitance and it is these two properties that can be used to detect light. I've done this before using AVR & PIC microcontrollers but had never tried it using a PICAXE. I assumed that interpreted basic would be too slow but when I did try...
  12. F

    Software PWM using binary code modulation

    I've seen a couple of questions about software PWM on this forum. I'd never heard of using binary code modulation to do PWM before so when I clicked through to this link http://www.batsocks.co.uk/readme/art_bcm_1.htm. I thought I'd post it here where others will be able to find it. I also tried...
Top