14-10-2014, 09:25 AM,
|
|
GastonLagaffe
Junior Member
 
|
Posts: 35
Threads: 5
Joined: Sep 2014
|
|
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
|
|
14-10-2014, 10:24 AM,
(This post was last modified: 14-10-2014, 10:27 AM by regis.)
|
|
regis
Administrator
      
|
Posts: 1,231
Threads: 45
Joined: Apr 2011
|
|
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.
|
|
14-10-2014, 10:55 AM,
(This post was last modified: 14-10-2014, 10:56 AM by GastonLagaffe.)
|
|
GastonLagaffe
Junior Member
 
|
Posts: 35
Threads: 5
Joined: Sep 2014
|
|
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
|
|
14-10-2014, 11:26 AM,
|
|
gtcbreizh
Senior Member
   
|
Posts: 309
Threads: 7
Joined: Sep 2011
|
|
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
|
|
14-10-2014, 11:51 AM,
|
|
GastonLagaffe
Junior Member
 
|
Posts: 35
Threads: 5
Joined: Sep 2014
|
|
RE: i2c/wire does not compile for pic18f45k50
done - Ciao, Mathias
|
|
14-10-2014, 08:11 PM,
|
|
GastonLagaffe
Junior Member
 
|
Posts: 35
Threads: 5
Joined: Sep 2014
|
|
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
|
|
|