rgammage 0 Posted October 17, 2013 Report Share Posted October 17, 2013 Bug description:When using debug the port is not shown correctlySteps to reproduce: main() { trisa = 0x00;porta = 0x3f; } Expected behaviour: This should show 0x37 for porta instead it shows 0x1f (I suspect confusion between port_bit and chip pin number .... RA3 is input only and is pin 4, RA4 is R/W on pin 3)Is the problem 100% reproduceable: YesIDE version: SourceBoost IDE version 7.12 and 7.20Compiler: Compiler BoostCCompiler version: Compiler version & ..... I thinkTarget device: PIC12F1822OS: OS Windows XP Quote Link to post Share on other sites
JorgeF 0 Posted October 17, 2013 Report Share Posted October 17, 2013 (edited) Hi Your code doesn't show the config fuses. Are you sure that there is no special functions on those pins that are afected by the configs? Note that RA4 (pin3) is also, among many other functions, OSC2 (for external clock source) and CLKOUT, features that are controled by the _CONFIGs. As for the RA3 (pin4) it is indeed only input, but I found nothing in the datasheet that says that the bit doesn't exist in the output latch. Best regards Jorge Edited October 17, 2013 by JorgeF Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.