Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i2c/wire does not compile for pic18f45k50
14-10-2014, 09:25 AM,
#11
RE: i2c/wire does not compile for pic18f45k50
(13-10-2014, 09:51 PM)gtcbreizh Wrote: Salut Mathias,
Nice job! Anyway some pins to change :
RA5 (pin 7 /chip) is only #13 pinguino, not #18
RA6 is #14, not #15
RA7 is #15, not #14
RC2 (pin 17/chip) #18 is missing, see above RA5 ?
RE0-1-2 (pins 8-9-10/chip) #32-33-34 are available as AN5-6-7
D- D+ (pins 23-24/chip) are #20/21 usable without USB connecting
MOSI can be on RC7 depending on configuration bits (see datasheet)

Good luck
Bye
André
PS : Really it is not difficult to put examples on the Wiki. You must start  with the help pages!
Salut André,
RA5 on pin 18 was a copy/paste error and I have corrected it. I also fixed RE0-Re2 and the USB pins.
I am struggeling with RA6 and RA7 as the data sheet shows RA6 on chip pin 14 and RA7 in chip pin 13 which are labeled:

Code:
chip pin | label pin | register
13       | 14        | RA7
14       | 15        | RA6
Can you double check this?

The pinmap table on the wiki is completely wrong. If it is ok, I will drop that table and replace it with the drawing

Ciao, Mathias
Reply
14-10-2014, 10:24 AM, (This post was last modified: 14-10-2014, 10:27 AM by regis.)
#12
RE: i2c/wire does not compile for pic18f45k50
Hi Mathias,
Great job !
In digital.h, I see :
- Pinguino pin 13 is connected to RA5 ( port[13]=pA, mask[13]=_5 ), RA5 = Microchip pin #7
- Pinguino pin 14 is connected to RA6 ( port[14]=pA, mask[14]=_6 ), RA6 = Microchip pin #14
- Pinguino pin 15 is connected to RA7 ( port[15]=pA, mask[15]=_7 ), RA7 = Microchip pin #13
- Pinguino pin 16 is connected to RC0 ( port[16]=pC, mask[16]=_0 ), RC0 = Microchip pin #15
...
It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply
14-10-2014, 10:55 AM, (This post was last modified: 14-10-2014, 10:56 AM by GastonLagaffe.)
#13
RE: i2c/wire does not compile for pic18f45k50
(14-10-2014, 10:24 AM)regis Wrote: Hi Mathias,
Great job !
In digital.h, I see :
- Pinguino pin 13 is connected to RA5 ( port[13]=pA, mask[13]=_5 ), RA5 = Microchip pin #7
- Pinguino pin 14 is connected to RA6 ( port[14]=pA, mask[14]=_6 ), RA6 = Microchip pin #14
- Pinguino pin 15 is connected to RA7 ( port[15]=pA, mask[15]=_7 ), RA7 = Microchip pin #13
- Pinguino pin 16 is connected to RC0 ( port[16]=pC, mask[16]=_0 ), RC0 = Microchip pin #15
...
So if I read this correctly, the label on the PCB is wrong ... or we have to change the digital.h pin assignment (which I would prefer)

Ciao, Mathias
Reply
14-10-2014, 11:26 AM,
#14
RE: i2c/wire does not compile for pic18f45k50
(14-10-2014, 09:25 AM)GastonLagaffe Wrote:
(13-10-2014, 09:51 PM)gtcbreizh Wrote: My responses below >>>>

Salut Mathias,
Nice job! Anyway some pins to change :
RA5 (pin 7 /chip) is only #13 pinguino, not #18
RA6 is #14, not #15
RA7 is #15, not #14
RC2 (pin 17/chip) #18 is missing, see above RA5 ?
RE0-1-2 (pins 8-9-10/chip) #32-33-34 are available as AN5-6-7
D- D+ (pins 23-24/chip) are #20/21 usable without USB connecting
MOSI can be on RC7 depending on configuration bits (see datasheet)

Good luck
Bye
André
PS : Really it is not difficult to put examples on the Wiki. You must start  with the help pages!
Salut André,
RA5 on pin 18 was a copy/paste error and I have corrected it. I also fixed RE0-Re2 and the USB pins.
I am struggeling with RA6 and RA7 as the data sheet shows RA6 on chip pin 14 and RA7 in chip pin 13 which are labeled:


Code:
chip pin | label pin | register
13       | 14        | RA7
14       | 15        | RA6
Can you double check this?

>>>>>label pin for RA6 = 14 ; for RA7 = 15

The pinmap table on the wiki is completely wrong. If it is ok, I will drop that table and replace it with the drawing

>>>>> Don't drop the pinmap  table. I am going to change it.
>>>>> Add your drawing. The 2 elements are usable.
Ciao, Mathias
Reply
14-10-2014, 11:51 AM,
#15
RE: i2c/wire does not compile for pic18f45k50
done - Ciao, Mathias
Reply
14-10-2014, 12:50 PM,
#16
RE: i2c/wire does not compile for pic18f45k50
(14-10-2014, 11:51 AM)GastonLagaffe Wrote: I did the update on the wiki too. On your turn would you control my job ? Thanks.
Bye.
André
Reply
14-10-2014, 08:11 PM,
#17
RE: i2c/wire does not compile for pic18f45k50
Salut André,

I checked the table and all looks ok but I had to change the line for pni 14/pin15. I verified it with the board and the table now reflects the behavior of the board.

Ciao, Mathias
Reply
15-10-2014, 02:01 PM,
#18
RE: i2c/wire does not compile for pic18f45k50
Salut Mathias,
Relating to
RA6 = chip pin 14 ; pinguino #14  but labeled D15
RA7 = chip pin 13; pinguino #15 but labeled D14
I did not get a true 18F45k50 Pinguino but my 18F45k50 board is home-made so I could not verify the labels.
Thank you for your help and the update in wiki page.
Bye
André
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)