Author |
Message |
Topic: TRIS register? [SOLVED] |
camerart
Replies: 20
Views: 52099
|
Forum: General CCS C Discussion Posted: Sun Dec 08, 2019 10:36 am Subject: TRIS register? [SOLVED] |
If you still have a 1K resistor in series between the compass and PIC, you've got a voltage divider when the compass goes low.......
Jay
Hi J,
I added the 1K resistor in series, as I kept getti ... |
Topic: TRIS register? [SOLVED] |
camerart
Replies: 20
Views: 52099
|
Forum: General CCS C Discussion Posted: Sun Dec 08, 2019 10:12 am Subject: TRIS register? [SOLVED] |
Are you absolutely sure you are connecting to the right pin?.
MISO, should be going to pin 23 on the 4620.
Hi T,
I have the MISO connected to PIN 42 of the 18LF4620.
C. |
Topic: TRIS register? [SOLVED] |
camerart
Replies: 20
Views: 52099
|
Forum: General CCS C Discussion Posted: Sun Dec 08, 2019 9:46 am Subject: TRIS register? [SOLVED] |
Hi,
Changed the PIC to 18LF4620, but still having issues.
I have a 1K pull up resistor on the MISO track, then cut the track at the compass end and put a 1K resistor across the cut. Checking the ... |
Topic: TRIS register? [SOLVED] |
camerart
Replies: 20
Views: 52099
|
Forum: General CCS C Discussion Posted: Mon Nov 25, 2019 11:04 am Subject: TRIS register? [SOLVED] |
Hi T and T2,
Let's hope the new PICs work ok, I'm sure they will.
Thanks, for the clues that helped me buy the LF version.
Cheers, Camerart. |
Topic: TRIS register? [SOLVED] |
camerart
Replies: 20
Views: 52099
|
Forum: General CCS C Discussion Posted: Mon Nov 25, 2019 6:37 am Subject: TRIS register? [SOLVED] |
If your PIC is running at 5v, then you _need_ a level shifter.
The SPI input of the PIC requires the signal to go to 4v to be seen as a
'1'. 3.3v is not enough. Also the PIC output will be overdrivi ... |
Topic: TRIS register? [SOLVED] |
camerart
Replies: 20
Views: 52099
|
Forum: General CCS C Discussion Posted: Mon Nov 25, 2019 2:49 am Subject: TRIS register? [SOLVED] |
You do realise your chip is not rated to run at 3.3v?. 4.2v minimum for
the 18F4620. To run at 3.3v requires the LF chip. I'd not be surprised if
a PIC running below it's rated voltage might do all ... |
Topic: TRIS register? [SOLVED] |
camerart
Replies: 20
Views: 52099
|
Forum: General CCS C Discussion Posted: Sun Nov 24, 2019 11:35 am Subject: TRIS register? [SOLVED] |
Hi T,
I use a different compiler, not CCS, but I hope you can shed light on a question for me, please.
Using an 18F4620 PIC and an AK8963C compass chip (Iphone 5)
I'm getting an intermittent faul ... |
|