Author |
Message |
Topic: Timing issue with EXT INT ISR |
Mounty
Replies: 10
Views: 13422
|
Forum: General CCS C Discussion Posted: Sun Aug 04, 2013 7:59 am Subject: Timing issue with EXT INT ISR |
Sorry to disagree with you but the CD32 gamepad is a 5V device. It is powered from the CD32 joystick port which is only capable of supplying 5V.
Also, I think I can tell 250Hz from 250kHz. My scope ... |
Topic: Timing issue with EXT INT ISR |
Mounty
Replies: 10
Views: 13422
|
Forum: General CCS C Discussion Posted: Sun Aug 04, 2013 5:00 am Subject: Timing issue with EXT INT ISR |
The interface to the gamepad, is SPI. As such, the place to start is the SPI peripheral... However the gamepad uses 3.3v logic, while your PIC uses 5v logic. You really need to possibly think about a ... |
Topic: Timing issue with EXT INT ISR |
Mounty
Replies: 10
Views: 13422
|
Forum: General CCS C Discussion Posted: Sat Aug 03, 2013 11:29 pm Subject: Timing issue with EXT INT ISR |
Connect the game the way it's normally supposed to be connected, and
study the waveforms and the idle state. Then make sure you copy it
exactly with your PIC.
Yes that's one logical approach. Un ... |
Topic: Timing issue with EXT INT ISR |
Mounty
Replies: 10
Views: 13422
|
Forum: General CCS C Discussion Posted: Sat Aug 03, 2013 4:17 pm Subject: Timing issue with EXT INT ISR |
game behaves as though the fire button is constantly pressed
What does this mean ? Does it mean you're getting constant interrupts
on the External interrupt pin ?
If so, what the signal look lik ... |
Topic: Timing issue with EXT INT ISR |
Mounty
Replies: 10
Views: 13422
|
Forum: General CCS C Discussion Posted: Sat Aug 03, 2013 3:43 pm Subject: Timing issue with EXT INT ISR |
We need more information:
1. What's on PIN-A7? I assume the data line since the clock is on Ext?
2. What PIC are you using?
3. What speed is the PIC running?
4. Are you sure the PIC speed is ri ... |
Topic: Timing issue with EXT INT ISR |
Mounty
Replies: 10
Views: 13422
|
Forum: General CCS C Discussion Posted: Sat Aug 03, 2013 11:42 am Subject: Timing issue with EXT INT ISR |
Not sure I'm on the right forum for this, but I'm using CCS C so here goes.
I'm designing an adapter which will control an 80's computer, the Commodore CD32, with a Playstation gamepad.
No probl ... |
Topic: LED won't switch off! |
Mounty
Replies: 4
Views: 7250
|
Forum: General CCS C Discussion Posted: Mon Jul 29, 2013 1:00 pm Subject: LED won't switch off! |
Mounty,
Since you didn't tell us your CCS version and show any initialization code
(fuses etc.), we don't know what oscillator you are using. It's hard to be
sure but, it's likely your fuses.
... |
Topic: LED won't switch off! |
Mounty
Replies: 4
Views: 7250
|
Forum: General CCS C Discussion Posted: Mon Jul 29, 2013 7:58 am Subject: LED won't switch off! |
several but the first one is that you've not disabled any/all other internal peripherals that use PIN_A6.
The default use of an I/O pin is not always set to digital I/O.
IE: pins used for the ADC a ... |
Topic: LED won't switch off! |
Mounty
Replies: 4
Views: 7250
|
Forum: General CCS C Discussion Posted: Mon Jul 29, 2013 3:26 am Subject: LED won't switch off! |
I have an LED attached to RA6 on a 16F628A (via a resistor of course).
I want it to come on when
output_high(PIN_A6);
Is executed, but it's on all the time, even when I put
outpu ... |
Topic: Newby needs help switching on LED |
Mounty
Replies: 6
Views: 7833
|
Forum: General CCS C Discussion Posted: Sat Jul 13, 2013 12:57 pm Subject: Newby needs help switching on LED |
Thanks guys but I got it sorted! It was a silly power supply problem. Thanks for your help. |
Topic: Newby needs help switching on LED |
Mounty
Replies: 6
Views: 7833
|
Forum: General CCS C Discussion Posted: Sat Jul 13, 2013 2:38 am Subject: Newby needs help switching on LED |
330 ohms would work much better for the LED series resistor.
if(!bit_test(DATA5,7)) {output_b(0b00000001);} else{);} //If SQUARE pressed
Post the statement where you define or declare DATA5. ... |
Topic: Newby needs help switching on LED |
Mounty
Replies: 6
Views: 7833
|
Forum: General CCS C Discussion Posted: Fri Jul 12, 2013 11:47 am Subject: Newby needs help switching on LED |
Hi,
I'm trying to interface a Playstation controller with a PIC16F628A to help with a robotics project at a local college.
I'm just in the early stages, and things seem to be going ok, I've got ... |
|