Search results

  1. P

    IRIN with a Samsung remote

    By changing the timing for the start pulse on Phil's code, now I can read a Samsung remote symbol AGC_Pulse_Length = 3500 ;(8.875mS) ;leading pulse burst is 9mS and 4.5ms space symbol AGC_Pulse_Length_Max = 3700 ;(9.125mS) ;upper limit That's all it takes. And I removed a...
  2. P

    IRIN with a Samsung remote

    I have DSPscope card, might do the trick.
  3. P

    IRIN with a Samsung remote

    If the information below is true, Samsung protocol seems to be a variation of NEC's with different start timing and a different layout of the 32 bit payload. If something works for NEC, it should be "easy" to make it work with SAM...
  4. P

    IRIN with a Samsung remote

    Thanks for your nifty code ! But... Tried with both a Sony and Samsung remotes and always get "Abort - pulse length" no matter what key pressed. This is happening because the initial pulse length returned is always less than 7100 (around 400-600 usually). Any ideas ?
  5. P

    IRIN with a Samsung remote

    I would like to use a Samsung remote in a project. I'm assuming that Samsung uses the NEC protocol, but I'm not sure... Has anyone implemented a routine (similar to IRIN) to read NEC codes ? On a 08M2 ? Code doesn't need to run in background as program can wait for any command to be received...
  6. P

    Using PWMOUT @ 20MHz

    Hi all I'm using a 28X1 with an external 20Mhz oscillator. I want to generate a PWMOUT output the closest to 16Khz. However, the wizard doesn't support 20MHz and I can't understand the explanation given on the manual for calculating the period for PWMOUT... Can anyone explain it in more...
  7. P

    How to set a TO interrupt ?

    i want to set a timer overflow interrupt for a few mS in the future. What should be the correct / best order for the folowing instructions: Let timer = 65535 Settimer XXX Setintflags 10000000, 10000000 My concern is which of those instruction sets the time "running" ? From where do the X mS...
  8. P

    PULSOUT stops execution ?

    Simple - and probably silly - question: during a PULSOUT, the picaxe stops execution until the pulse "runs out" ?
  9. P

    Is there a Picaxe with a reasonable resolution DAC ?

    By reasonable, I mean at least 8bits... I think I'll have to resort to an external DAC, but just to be sure.
  10. P

    Question about hardware interrupt handling

    On a 40X2, inside the interrupt processing routine, should I clear the interrupt flags right at the beginning ? In this case: setintflags off hint0flag = 0 hintflag = 0 And at the end of the routine, should I end with ? hintsetup %00000001 setintflags %00000001, %00000001
  11. P

    Controller for a warm-up regulator on a Bosch K-Jetronic fuel injection

    A few weeks ago I finished this little project. Actually quite simple but very useful as it allows you to cheaply replace an expensive worn part, while giving you much more adjustment flexibility. https://restlessengineer.wordpress.com/2015/01/27/elektro-wur-or-dwur-v3/ Contact me if you want...
  12. P

    Inline assembly ?

    Silly question... Is there any way to insert inline assembly in the middle of basic ?
  13. P

    Anything particular with B.0 on a 40X2 ?

    I'm trying to detect an on/off switch on pin B.0 using the following code: init: input B.0 main: if pinB.0 = 0 then sertxd("L",13,10) else sertxd("H",13,10) endif pause 300 goto main end I have B.0 grounded with a 1K resistor. The switch closes the circuit from B.0 to 5V, through a 1K...
  14. P

    Servicing hardware interrupts in a 40X2

    I didn't find the manual completely clear on the servicing of hardware interrupts (INT0, 1, 2)... There's some talk about clearing the int flags inside the interrupt routine, but what flags exactly ? And must the interrupts be enabled again before returning ?
  15. P

    Reading a thermistor - optimal range

    In my current project i have to read the value of a thermistor. Cold it has a resistance of about 100ohm, fully warm gets to 50ohm. If i use the recommended circuit from manual 3, i use a 10k resistor connected to ground in series with the thermistor. However, this gives a rather limited range...
  16. P

    Heat sinking an IRL520 Mosfet

    The board I'm building contains 3 IRL520's Mosfet, which I intend to heatsink. However, the heatsink tab appears to be electrically connect to the Drain pin... How do I safely attach a heatsink (an aluminium strip) ? I can insert somethink to isolate it, but how to prevent the fixing screw and...
  17. P

    i2c tutorial document

    I looked around the site for a "i2c tutorial" document that I know existed, but couldn't find it... any ideas ? Thanks
  18. P

    Using hsersetup in automatic background mode

    If using the hardware serialin in automatic mode, I suppose there's no way to restrict the amount of scratchpad area used ? Part of those 128 bytes (20X2) could be useful somewhere else...
  19. P

    Confusion regarding variable storage

    Going over the manual again regarding storage for a 20X2, I got a bit confused: - the 256 general purpose variables share the same space as the "named" variables b01,b1,b2,... (or w0,w1,...) ? So after b56, you should start using the indirect method of addressing (@bptr) from there until 255...
  20. P

    Understanding the SR latch

    I just recently came across the SRlatch / srreset / srset instructions and I'm wondering if they can be used for the following purpose: - based on some event, a pin is set high with the provision to be turned off automatically after X milliseconds. Can the SRlatch instructions accomplish this...
Top