Whatever.
Darrel's answer covered it.
Type: Posts; User: Chris Barron; Keyword(s):
Whatever.
Darrel's answer covered it.
Hello Dick
I tested the same code as above, changing the interrupt handler to the following
asm
myint:
banksel PIR1
btfss PIR1,5
goto int_out
Thanks Darrel. Can't tell yoiu how close i came to putting in banksels, but then tried something else.
Job done,
Much appreciated, many thanks
Chris
I can't remember how i resolved a similar issue like this with this chip previously, but I know I've managed it.
I've just looked at the project again and the receiving unit never sends data...
I've been trying to get some code working on the 12F1822 which works fine on the 16F690
I can't explain why there should be a big difference in operation. I've gone through the datasheet trying to...
I'm not sure that could be the cause given the unreliability of the fault. If set up incorrectly it would work consistently poorly. As it is, the 1 second epoch is always on time (suggesting that the...
Good shout Henrik.
If it is any consolation Wayne you won't be the first or the last to be stumped in that way.
Now, if you ever find out why Timer 3 didn't behave the same as Timer 1 for me,...
Hello Wayne,
there is probably little point in using my configs, unless yoiu plan to set up your pic to mimic mine.
Your best way top approach it is to decide which peripherals you would like to...
Hi, thanks for that.
I did get around to suspecting that and tried changing between 16-bit and 8-bit modes but there was no difference - and I couldn't explain how it would make a difference because...
I have an update on this issue.
In my ISR I have interrupts created by timer 1 and timer 3. Timer 1 is used as a one-shot timer and timer 3 is used as the low frequency 1Hz generator.
Timer 1 and...
I have been building clocks for a while and have sometried and tested code which works great on an 18F25k22. I need to add some more features to the device which uses this so I am stepping up to the...
Good work ! Thanks for such a quick response.
Awesome
When I use the EEPROM keyword and load the file into pickit 2 I get an error message that the hex file is too large.
If i comment out the eeprom statement pickit 2 accepts it without fault.
If I...
I've just tried it and it works, so respect to Bruce.
With regards to the use of PBP Macros mentioned in bruce's message, where is the best place to find information about them, the manual ?
...
I'm looking at this again now, and wonder what the general opinion is of the following strategy.
1) Make a note of the names of all of my variables which fall into assembly routines
2) Force...
Working with the condition that you know you will receive 13 bytes of data in advance
For Bytes = 0 to 12
SerIn PORTA.0,N1200,[QUAL1,QUAL2],DATAIN[Bytes]
Next
Does the SerIn command also have...
Michael, I'm no expert but some of your references to DATAIN include brackets and an array element identifier after them, others don't.
In the serin command does picbasic know to put the received...
Thanks for the tips and information Bruce, Darrel.
I'm about to take a much needed break but I'll try out the ideas when I returm
Chris
Thanks Bruce. What i've assumed is that because all of my vars do fit into one bank if i put them at the start of the declarations they will be placed there. The problem with the extra vars is...
That is what I was alluding to.
If that is the case then one workaround may be to declare a large array, called 'MY_VARS' and then declare the existing program variables to be related to that one as...
Here's a video of the device, when it works. This is the LED version, my main work is on the VFD tube version, versions of which can be seen in my Youtube collection. The only difference between the...
This is my ISR
ASM
myint
btfss PIR1,0 ; timer1 o/flow
bra Data?
; keypress stuff here
These are my own vars.
Change_delay var word[6]
Delay_set var word[6]
Tube_previous var byte[6]
Tube_current var byte[6]
Tube_next var byte[6]
I could do that, but I would rather not be limited to a smaller number of variables than I have ram locations for.
I would post the code, but it's over 40k now. Take out the data tables and it's...
Just for confirmation I have reverted to a previous interrupt routine which does not use indirect addressing, does not access the FSR's at all. The same problem is happening.
Would someone be able...