CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 10 matches
CCS Forum Index
Author Message
  Topic: LTC6903 Software SPI using 12F683
AidanHockey5

Replies: 20
Views: 35204

PostForum: General CCS C Discussion   Posted: Sun Jun 11, 2017 10:12 pm   Subject: LTC6903 Software SPI using 12F683

A question. For the 12F683 test, did you incorporate all the changes given
so far, including putting the setup_timer_0(T0_INTERNAL) line at the
start of main() ?


Yes I have. Alright, so I g ...
  Topic: LTC6903 Software SPI using 12F683
AidanHockey5

Replies: 20
Views: 35204

PostForum: General CCS C Discussion   Posted: Sun Jun 11, 2017 9:53 pm   Subject: LTC6903 Software SPI using 12F683
Awww. Try as I might, I don't think the 12F683 is going to cut it. A little disappointing, but ultimately, if anybody else in the future runs into this problem, look for a chip with hardware SPI suppo ...
  Topic: LTC6903 Software SPI using 12F683
AidanHockey5

Replies: 20
Views: 35204

PostForum: General CCS C Discussion   Posted: Sun Jun 11, 2017 9:36 pm   Subject: LTC6903 Software SPI using 12F683
OHHH my goodness I think I've got something.

Okay, so first off, I caved and picked a different PIC chip, this time with hardware SPI support. I chose a 16F690
TOTALLY overkill for something like ...
  Topic: LTC6903 Software SPI using 12F683
AidanHockey5

Replies: 20
Views: 35204

PostForum: General CCS C Discussion   Posted: Sun Jun 11, 2017 9:14 pm   Subject: LTC6903 Software SPI using 12F683
Just for fun, I decided to swap out my previous LTC 6903 and put in a fresh one. Same odd results. Just to rule out the possibility that the PIC was malfunctioning, I also replaced that too. Nope.

...
  Topic: LTC6903 Software SPI using 12F683
AidanHockey5

Replies: 20
Views: 35204

PostForum: General CCS C Discussion   Posted: Sun Jun 11, 2017 9:07 pm   Subject: LTC6903 Software SPI using 12F683
Hmm bummer, no dice. Still getting that same wrong 56KHz value for
SetFrqManual(11, 831);

I've even tried some lower values like:
SetFrqManual(1, 984);

Which should give 4 KHz ...
  Topic: LTC6903 Software SPI using 12F683
AidanHockey5

Replies: 20
Views: 35204

PostForum: General CCS C Discussion   Posted: Sun Jun 11, 2017 8:54 pm   Subject: LTC6903 Software SPI using 12F683
All good. By the way, in the #USE SPI: Would the baud rate have anything to do with this issue? The 6903's serial clock speed is 20 MHz, which is pretty high for the 12F683 @ 8 MHz.
Perhaps the BITS ...
  Topic: LTC6903 Software SPI using 12F683
AidanHockey5

Replies: 20
Views: 35204

PostForum: General CCS C Discussion   Posted: Sun Jun 11, 2017 7:58 pm   Subject: LTC6903 Software SPI using 12F683
http://i.imgur.com/wan20Xa.png

I'm driving an older SN76489 PSG chip with the output. You can assume that chip is hooked up correctly.

As for the fuses, mine are identical to yours. My compiler ...
  Topic: LTC6903 Software SPI using 12F683
AidanHockey5

Replies: 20
Views: 35204

PostForum: General CCS C Discussion   Posted: Sun Jun 11, 2017 6:03 pm   Subject: LTC6903 Software SPI using 12F683
Post your main.h. I want to see your #fuses and #use delay().


#include <12F683.h>
#device ADC=16

#FUSES NOWDT //No Watch Dog Timer
#FUSES NOBROWNOUT / ...
  Topic: LTC6903 Software SPI using 12F683
AidanHockey5

Replies: 20
Views: 35204

PostForum: General CCS C Discussion   Posted: Sun Jun 11, 2017 5:15 pm   Subject: LTC6903 Software SPI using 12F683
Ha, great eye PCM. I've been mulling over this for so long that I didn't realize I made so many silly mistakes. This is essentially ported-over Arduino code since there really isn't too much in the wa ...
  Topic: LTC6903 Software SPI using 12F683
AidanHockey5

Replies: 20
Views: 35204

PostForum: General CCS C Discussion   Posted: Sun Jun 11, 2017 3:45 pm   Subject: LTC6903 Software SPI using 12F683
Hello,

I've been trying to get this LTC6903 programmable oscillator to play nice with a 12F683, but I've been having no luck. Perhaps it's my misunderstanding of how software SPI works in CCS.

H ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group