This was tested on a PIC18F25J11 running at 3V, but should work on your 46J11. Note it was tested with PBP3, but can easily be modified to work with earlier versions.
#CONFIG
CONFIG OSC =...
Type: Posts; User: Bruce; Keyword(s):
This was tested on a PIC18F25J11 running at 3V, but should work on your 46J11. Note it was tested with PBP3, but can easily be modified to work with earlier versions.
#CONFIG
CONFIG OSC =...
This is pretty old, but should work if you have a standard 12-bit type Sony IR transmitter. It's one of the simplest routines I have for decoding Sony IR.
DEFINE OSC 4
IR_PULSE VAR BYTE(12)...
Not sure what you mean by it seems to stop at start but timer1 is running a lot faster at 20MHz, and you don't mention how far it gets or what it shows as the result, so it's tough to help.
Have...
Clear T1CON.3. If your programmer won't allow you to reprogram them with this bit set, at least you shouldn't have the same problem with new ones. You only enable TMR1 osc if you're using an external...
This should work;
#CONFIG
__CONFIG _MCLRE_OFF & _INTRC_OSC_NOCLKOUT & _WDT_OFF & _LVP_OFF & _BODEN_OFF & _PWRTE_ON
#ENDCONFIG
And disable case sensitivity in MPASM or make porta PORTA in...
As Darell already mentioned, the accelerometer is all you'll need. What you're looking to do is what accelerometers are made for....;o)
It went really well, and was a lot of fun. Russell, the guy that put this all together for TMG was very sharp, put together one heck of a good PBP course with a lot of very cool experiments, and...
Here's one way if you have a 16F1827 http://www.picbasic.co.uk/forum/showthread.php?p=84227#post84227
And another way http://www.rentron.com/Micro-Bot/IR_Serial.htm with any PIC with hardware PWM.
If your code is large, then post it as an attachment VS inline. But how do you know this is a stack overflow reset?
A single interrupt event shouldn't cause a stack overflow, but we have no way of...
All packets will include a start bit, 8 data bits, and the stop bit. You might have better luck if you increase (or get rid of) the timeout period.
The Microchip USB loaders are configured to run on Microchip USB dev boards and they use SW2 to determine if it jumps to the loader or user code at POR. In the USB loader version I have, io_cfg.h has...
If the sender PIC array is type int, it's probably 16-bit or word sized. Try setting it to unsigned byte or char type.
Support for the PIC18F26K80 was added in PBP version 2.60C, and MCS should pick up on this if you have a version of PBP that supports the PIC18F26K80.
The big draw to the Arduino platform is;
1. The compiler is free and open source. Which doesn't really mean much unless you just want a free compiler or you can modify the open source compiler to...
The ones made for metal work just fine on plastic enclosure panels. I've used them. You just drill a hole in the end panel large enough to pass the bolt through.
But they are expensive, and you...
It works as expected here!
5960
Have you tested PORTC.4 to see if it's blown, or you have a problem with something connected to it?
What happens if you change CONFIG WDT = ON to CONFIG WDT = OFF?
It sounds to me like PBP does not reset WDT for all instances. I.E. if you have only a simple loop, incrementing or decrementing a variable, with no PBP commands in the loop, you have a WDT reset.
...
Yup. Very cool. Are you using the LEDs to sense changes, then flipping them to outputs, or using sensors?
Here's a untested/simplfied version that should work. Compare it to your original to see the changes.
DEFINE OSC 4 ' 4 MHz clock
DEFINE ADC_BITS 10 ' Set number of bits in result
DEFINE...
Hi Picone,
Glad I could help, and welcome back.
FYI: Darrel has a nifty include file you can use to disable all analog features by just including it in your code. See this thread...
There are much better/faster ways to do this, but this should get you started with something that's fairly easy to understand.
Assuming you have an NEC transmitter that outputs something like the...
Change ADCON0=%1100000 to ADCON0=%11000000, and _RC_OSC to _HS_OSC.
Also, you don't need a word variable for an 8-bit result.
Can't you use hardware PWM?
FYI: BCF IOCAF,IOCAF1 in your int handler is probably not doing what you think. IOCAF is in bank 7 on the 16F1828, and PBP resets the bank to 1 when you use ASM. It's up to you to make sure you're in...