Search results

  1. A

    Full ASCII Character Font for SSD1306 with 08M2 (and above)

    Hi, Yes it's definitely possible. Have you looked at the "HERE" link addendum at the foot of my post #2 above? That shows Double-Height characters, also with Double-Width achieved automatically with a "Character Rounding" (or interpolation) Algorithm that I've described elsewhere on the...
  2. A

    Transfer PWM output to a different pin?

    Hi, The (base PIC) equivalent pins to PICaxe C.7 (and C.6) are referred to as the "default" outputs for the H-bridge PWM hardware (silicon), but the PICaxe HPWM{DUTY} command doesn't appear to specify an 18 pin chip. So you might need to adopt POKESFR commands to use PWM on those particular...
  3. A

    Transfer PWM output to a different pin?

    Hi, "Background" PWM outputs require dedicated on-chip hardware, so they can be available only on certain specific pins. It may be possible to move some PWM outputs by using the "Alternate Pin Function" Special Function Register (SFR), but a brief look at the Microchip 18-pin data sheet...
  4. A

    SIMPLE communication between to 08M2 chips

    Hi, I've now read through (most of) the whole thread again and had "forgotten" some of the details from more than two months ago. Also a lot has not yet been described ! IMHO, the complete Program (or programs) must fully execute in a Single Frame (of 25 ms). The reason is that, for example...
  5. A

    SIMPLE communication between to 08M2 chips

    Hi, You need to take into account that PICaxe Basic is an "interpreted" language so every instruction takes a considerable time to decode and execute. I prefer to work in "base PIC" Instruction Cycles which each take 1us with a normal 4MHz (M2 PICaxe) clock and 62.5 ns with an X2 running at...
  6. A

    SIMPLE communication between to 08M2 chips

    Hi, Port.pin C.0 is HSEROUT on a 20X2 ! You need to disable HSEROUT in the HSERSETUP command (set bit 3, i.e. change to %1001) if you want to use it as a "normal" output pin. Cheers, Alan.
  7. A

    running a stepper using high/low, problem

    Hi, In what way? A set of ports in a 40X2 called A, B, C, D, E, F, G and H or (as I think you'd soon find that 8-bit ports are generally much more useful) a new set of 4-bit ports called: S, T, U, V, W, X, Y and Z ? And why 4-bits; an "octet" of 8 x 7-segment displays could be selected by 3...
  8. A

    SIMPLE communication between to 08M2 chips

    Hi, Yes, "Getword( var )" is a Macro, defined higher in the program and servo1 and w1 should be equivalent, so it looks as if it should all work. But.... Your "simple" program doesn't include a SETFREQ M64 which will make the LED flash 8 times faster (i.e. 125 ms). Are you sure the LED...
  9. A

    SIMPLE communication between to 08M2 chips

    Hi, Personally, I never use X2 chips so I'm not the best person to ask. But yes, you need a HSERSERUP command (only) if you are using the HSERIN command (or background receive). Personally, I would normally remove any "unnecessary" commands, if only to avoid confusion (to myself, or any...
  10. A

    running a stepper using high/low, problem

    Hi, Possibly it's the delay between the execution of the first and last commands in lines such as high B.0:low B.1:low B.2:high B.3. Each instruction executes in about 400us (for High / Low with a 20M2 at 4 MHz) so there will be about a 1.2 ms delay between B.0 and B.3 being updated. You may...
  11. A

    SIMPLE communication between to 08M2 chips

    Hi, AFAIK the default SERTXD is 4800 baud with a SETFREQ clock of 4 MHz, so it should be #Terminal 76800 when you're using SETFREQ M64. Do you really need to use 115200 baud? IMHO you may be creating problems for yourself; PICaxe is just not a "fast" processor. :( EDIT: Why are you...
  12. A

    Maximum Digital Input Voltage of an M2 Chip?

    Hi, Yes, that is the specification, what is the issue? It's the reason for generally putting a resistor in series with most (PICaxe) inputs, for example the 22k in the Serial/Programming input to tolerate the (possible) +/- 15 volts of "real" RS232 inputs. The "cautious" approach is to use...
  13. A

    Code to control output On and Off pulse times with pots

    Hi, Personally, I've never found the need for the multitasking feature of M2s (it's an "easy" way to do mutitasking) so you can use one of your 08Ms. Just use the code I gave to replace your section beginning "SYMBOL....". If the input is above 4.8 volts then the program will output a 20ms...
  14. A

    Code to control output On and Off pulse times with pots

    Hi, If it's an 08M (not an M2) chip, then probably change the second section to: ; GOTO start1 ; Uncomment for an 08M2 (closes the first loop) SYMBOL SENSEPIN = PIN3 start2: ; Initiates multi-tasking with M2 chips (otherwise it's a normal label) IF SENSEPIN =...
  15. A

    SOUND command

    Hi, It may depend which PICaxe you want to use (the 08M2 is more restricted) and whether you want to use the SOUND command, or just a more general "Beep" or TUNE, etc.. But for a good range of amplitude (Volume) and frequency (Pitch) you probably need to use some degree of "external hardware"...
  16. A

    suitable transistor

    Hi John, Yes, that should be a good solution, and/or a series resistor of about 10k - 22k in the data line(s) could also avoid the issue. BTW a 1k series Base resistor (or a little higher) looks about right for a 3.3 volt supply, and almost any "Small-Signal/General Purpose" PNP transistor...
  17. A

    suitable transistor

    Hi, The C33725 appears to be a derivative of the BC337 NPN transistor, but you need to use a PNP transistor (with Emitter to the supply rail, Collector to the card/reader). The corresponding PNP transistor is the BC327, which is exactly what I would have recommended (without checking the exact...
  18. A

    More ADC questions and output questions

    Hi, The upper byte contains a value with a resolution of 8-bits, or 1 in 256. Thus (as far as that byte value is concerned) the resolution is 1.024 / 256 V = 4 mV. The byte value will only change for (approximately) each increase or decrease of 4 mV input signal. Yes, of course the...
  19. A

    More ADC questions and output questions

    Hi, I'm not clear if he/you are saying that the low(er) bits may be "lost" or are just potentially "incorrect", but the difference is largely irrelevant. If you "lose" just one bit (i.e. it is possibly inaccurate) then you have basically the same situation as a "genuine" 10-bit conversion...
  20. A

    Budget Serial MP3 Player Input Format...

    Hi, Do you mean this datasheet or another budget MP3 player? Cheers, Alan.
Top