Author |
Message |
Topic: problem with 18F4550 clock speed |
probeoil
Replies: 33
Views: 43731
|
Forum: General CCS C Discussion Posted: Sat Apr 27, 2013 6:46 am Subject: problem with 18F4550 clock speed |
it also means you are moving away from this forum's target audience. As this forum is also hardware related we can discuss your question here but please be aware that we are getting off topic and tha ... |
Topic: problem with 18F4550 clock speed |
probeoil
Replies: 33
Views: 43731
|
Forum: General CCS C Discussion Posted: Fri Apr 26, 2013 4:49 am Subject: problem with 18F4550 clock speed |
Hi !!
what is your appinion about the PIC32MX795F512 processor
I found a board that has what i need
http://www.digilentinc.com/Products/Detail.cfm?NavPath=2,892,894&Prod=CHIPKIT-MAX32
my c ... |
Topic: problem with 18F4550 clock speed |
probeoil
Replies: 33
Views: 43731
|
Forum: General CCS C Discussion Posted: Thu Apr 25, 2013 2:07 pm Subject: problem with 18F4550 clock speed |
Hi guys,
I will need your wisdom on something.
I decided to change the mcu to something faster,
I'm looking for a microcontroller with 24 MIPS, at least 30 i/o
for general use, usb compatible.A ... |
Topic: problem with 18F4550 clock speed |
probeoil
Replies: 33
Views: 43731
|
Forum: General CCS C Discussion Posted: Mon Apr 22, 2013 6:33 am Subject: problem with 18F4550 clock speed |
I'm screwed, I'm stuck with software spi.
With a parallel ADC i'll get 700KHz
it's enough for a CMOS but it won't do it for CCD
Thank you lads you have been very helpful
Best wishes |
Topic: problem with 18F4550 clock speed |
probeoil
Replies: 33
Views: 43731
|
Forum: General CCS C Discussion Posted: Mon Apr 22, 2013 5:12 am Subject: problem with 18F4550 clock speed |
#1 Just send as two bytes.
Code:
int16 rval send_16(int16 val_to_send)
{
int8 reply
thank you Ttelmah,
I'm trying out the first program, although I get an error at spi_write(), the ... |
Topic: problem with 18F4550 clock speed |
probeoil
Replies: 33
Views: 43731
|
Forum: General CCS C Discussion Posted: Mon Apr 22, 2013 2:57 am Subject: problem with 18F4550 clock speed |
I need some more of your precious help..
I want to program a hardware SPI for 16 bits frame, I'm using a 12-bit ADC
which has 4-bit leading zeros and 12-bit data.
Any example or tutorial you can ... |
Topic: problem with 18F4550 clock speed |
probeoil
Replies: 33
Views: 43731
|
Forum: General CCS C Discussion Posted: Mon Apr 22, 2013 2:43 am Subject: problem with 18F4550 clock speed |
FAST_IO doubled the speed of the commands, thanks guys |
Topic: problem with 18F4550 clock speed |
probeoil
Replies: 33
Views: 43731
|
Forum: General CCS C Discussion Posted: Sun Apr 21, 2013 10:04 am Subject: problem with 18F4550 clock speed |
Nice Ttelmah , i'll try it tomorrow |
Topic: problem with 18F4550 clock speed |
probeoil
Replies: 33
Views: 43731
|
Forum: General CCS C Discussion Posted: Sun Apr 21, 2013 7:57 am Subject: problem with 18F4550 clock speed |
Thank you everyone,
After a three hour reading i understand why it can't go faster.
I will change my design |
Topic: problem with 18F4550 clock speed |
probeoil
Replies: 33
Views: 43731
|
Forum: General CCS C Discussion Posted: Fri Apr 19, 2013 8:15 am Subject: problem with 18F4550 clock speed |
Don't confuse MIPS and MHz. The PIC processor needs 4 clock cycles to execute 1 instruction. So, as Ttelmah already pointed out, when running at 48MHz the processor can execute 12 instructions every u ... |
Topic: problem with 18F4550 clock speed |
probeoil
Replies: 33
Views: 43731
|
Forum: General CCS C Discussion Posted: Fri Apr 19, 2013 5:31 am Subject: problem with 18F4550 clock speed |
when i say 2 cycles i mean to do
output_low(PIN_C0);
output_high(PIN_C0); |
Topic: problem with 18F4550 clock speed |
probeoil
Replies: 33
Views: 43731
|
Forum: General CCS C Discussion Posted: Fri Apr 19, 2013 5:30 am Subject: problem with 18F4550 clock speed |
I tried the most simple program.
#include <18f4550.h>
#include <main.h>
#use delay(clock=48000000)
void main() {
int c;
int i;
unsigned int16 res; ... |
Topic: problem with 18F4550 clock speed |
probeoil
Replies: 33
Views: 43731
|
Forum: General CCS C Discussion Posted: Fri Apr 19, 2013 4:09 am Subject: problem with 18F4550 clock speed |
Thank you for the response Ttelmah.
I'll try it out |
Topic: problem with 18F4550 clock speed |
probeoil
Replies: 33
Views: 43731
|
Forum: General CCS C Discussion Posted: Fri Apr 19, 2013 1:46 am Subject: problem with 18F4550 clock speed |
I commented out printf and did not work, on every loop adc_result function is called and gives 16 pulses, then gives a print and starts another loop. |
Topic: problem with 18F4550 clock speed |
probeoil
Replies: 33
Views: 43731
|
Forum: General CCS C Discussion Posted: Fri Apr 19, 2013 12:57 am Subject: problem with 18F4550 clock speed |
In which case you need to change your divider to CPUDIV2 to give 32MHz. With CPUDIV1 which you show, you will be running at 48MHz.
I know but with CPUDIV1 i get 6 MHz CPU speed and with CPUDIV2 ... |
|