Quantcast
Channel: Problem on port C and port D on a 18F45K50
Browsing latest articles
Browse All 28 View Live

Problem on port C and port D on a 18F45K50 (microp)

Hello, I'm using a 18F45K50 on a board (self-made).I can read the state of the digital input on the port A and port B, but I can't read the state of the digital input on the port C and port D (RC2,...

View Article



Re: Problem on port C and port D on a 18F45K50 (DarioG)

Would look good enough, well...

View Article

Re: Problem on port C and port D on a 18F45K50 (tom maier)

 Just as a quick double-check, you can read back the tris registers after you have set them and see if they are truly what you set them to be. A peripheral can overwrite your tris settings if you have...

View Article

Re: Problem on port C and port D on a 18F45K50 (microp)

Hello, I have always the problem. I have reduced my program to the file I have loaded.The red led is always on, never the green. Could you help me, I'm lost !!! best regards. Stephan

View Article

Re: Problem on port C and port D on a 18F45K50 (DarioG)

Hmm, good enough, again.Is the numeric base set to decimal in this program? Or that "17" would mean a different thing than expected... Also, use ,ACCESS and ,BANKED as the last parameter instead of ,0

View Article


Re: Problem on port C and port D on a 18F45K50 (microp)

Thanks Dario G, I have tested with BANKED and ACCESS and it's the same result.I'm using ICD3 in debug mode. The trisd register is good (17 in hex).The portd register is always at 0.But on the board the...

View Article

Re: Problem on port C and port D on a 18F45K50 (ric)

 movlw 17 movwf TRISD,017 = 17 decimal = 0x11So you have set D0 and D4 as inputs, but you are trying to read D1.

View Article

Image may be NSFW.
Clik here to view.

Re: Problem on port C and port D on a 18F45K50 (DarioG)

ric movlw 17 movwf TRISD,017 = 17 decimal = 0x11So you have set D0 and D4 as inputs, but you are trying to read D1. That's why I asked about the numeric base " /> (even though I went by my eyes to...

View Article


Re: Problem on port C and port D on a 18F45K50 (ric)

He just said "The trisd register is good (17 in hex)."I think he is just assuming it is in hex, and didn't actually read it back.

View Article


Image may be NSFW.
Clik here to view.

Re: Problem on port C and port D on a 18F45K50 (DarioG)

Oh, maybe indeed " />let's wait and see..

View Article

Re: Problem on port C and port D on a 18F45K50 (microp)

I have just tested with my picdem fs usb.I have modified the program (of the picdem) to test PD1 as an input and sent the result by usb to the software HID PNP Demo.It's work OK.If I program the picdem...

View Article

Re: Problem on port C and port D on a 18F45K50 (1and0)

The default radix is hex. For your PIC K device, the ANSELx registers are NOT located in the Access RAM. Edit:  I suggest you to remove all the RAM access bits and let MPASM work for you.

View Article

Re: Problem on port C and port D on a 18F45K50 (microp)

Hello, 1and0 you're right. I have set the ANSELx registers by the BSR register : It's working ok.I'm using only 5 registers which are not in the bank 15 : the five ANSELx !!!Thank you very very very...

View Article


Re: Problem on port C and port D on a 18F45K50 (1and0)

micropI have set the ANSELx registers by the BSR register : It's working ok.I'm using only 5 registers which are not in the bank 15 : the five ANSELx !!!I think you meant to say they ARE located in...

View Article
Browsing latest articles
Browse All 28 View Live




Latest Images