I agree with peja089, the colon acts as a virtual line break.
If more than a signle statement should execute as a result of the evaluation use IF-THEN-ENDIF.
With that said... In section 5.35 of...
Type: Posts; User: HenrikOlsson; Keyword(s):
I agree with peja089, the colon acts as a virtual line break.
If more than a signle statement should execute as a result of the evaluation use IF-THEN-ENDIF.
With that said... In section 5.35 of...
A quick look at the datasheet for the 877A indicates that it does not even have a T0CON register (it does have a T1CON register though).
Are you sure that's the device that the code was originally...
From the manual:
Try replacing Symbol TMR0ON = T0CON.7 with TMR0ON VAR T0CON.7 and see if that makes any difference.
No, why do you think that? All it means is that the chip can load the information about what it should display at that rate, it takes a lot longer for it to actually "render" the information on the...
Never used the MAX7219 so correct me if I'm wrong but reading the datasheet it looks like for each digit on the display you need to shift out 16bits. 4 digits x 16bits = 64bits.
If the SPI clock is...
The manual states that the clock runs at about 50Khz depending on oscillator, they're probably basing that figure on a 4MHz oscillator. At 8MHz I would expect around 100Khz.
I'm currently using...
Check if, in fact, the file IS read-only. If not, try moving out of any "virtual folder" like Documents and put in something like C:\PBP\Projects or something.
/Henrik.
Thank you Richard!
Replacing the glcd_clrxy subroutine with that from post #38 seems to have fixed it.
It also seems to have made GLCD_BAR more predictable but I have not looked into how they're...
Well, it turns out I don't have to worry about manually blanking out "stuff" - it just works. Still curious about the GLCD_CLR though.
I'm using Richards code with a small 0.96" 128x32 OLED display, soft I2C (because the 18F46K42 doesn't have the "old" MSSP module).
I've managed to print text and variables on the screen but in...
What if the incoming value changes as the output is ramping towards one end? Should that change in input signal be ignored or should there be an equal change in the output?
FOR i = 0 to 7
Correct.0[7-i] = Mistake.0[i]
NEXT
or
Correct = Mistake REV 8
Of course, since the macro only uses the low byte of R4 to index the array. That would also make it fail when using a constant >255.
In any case, the "example" posted in the first place had a BYTE...
Which device are you using?
I compiled two different version and looked at the .lst and with my limited understanding of assembly I'd say it "should work"
First, HSEROUT [STR Buffer\16]
...
I don't know and I can't test/try if your code right now but a simple workaround would be
For i = 0 to BalCount ' (Or possibly BalCount-1)
HSEROUT [BalBuffer]
NEXT
HSEROUT [26,13]
Further, variables aren't automatically initialized (ie set to a specific value).
Where in your code you put the declaration of the variable can change the ORDER of the variables in RAM so if,...
I don't know but the way I understand and interpret it is that between user variables that HAVE specific bank requests and those that don't the first ones ARE handled first - but still AFTER the PBP...
Remember that PBP itself uses a bunch of variables and it most likely needs to use BANK0 for them for the same reason that you want to use BANK0. The number of variables PBP uses depends on what...
I was a little quick with that PCON thing, on startup set PCON = %00011111 then let the program run
serout2 PORTC.6, 16468, ["Power-on:", BIN8 STATUS, " - ", BIN8 PCON, 10,13]
PCON =...
Since the I'm alive output is outside of and before Main it looks to me as if the PIC is resetting and starting over. Try something like:
serout2 PORTC.6, 16468, [BIN8 STATUS, " - ", BIN8 PCON,...
Hmm, section 1.4 in the datasheet I happen to look at seems to show, in quite some details, how data is exchanged and they let you know that more details can be found in the SH-2 Reference Manual.
...
The datasheet for the 16F19176 seems to indicate that the device has actual EEPROM on board and does not mention HEF (High Endurance Flash) so I would expect DATA/READ/WRITE to work with that device....
Disclaimer: Have never actually used HEF so this is not based on experience but rather on how I believe/think it works.
Since HEF is part of FLASH I'd say the command(s) to use is...
The gold and silver editions allows you to install and activate PBP on up to 3 machines, do you have that many and still need that extra laptop?
The pin you're trying to use is configured for analog input.