Author |
Message |
Topic: 18F45K22 SPI SDCARD Read Speed Problem |
eaydin
Replies: 20
Views: 48099
|
Forum: General CCS C Discussion Posted: Wed Jun 01, 2022 12:24 am Subject: 18F45K22 SPI SDCARD Read Speed Problem |
A nominal 3.7v Li-ion battery can be up to 4.2v when freshly charged.
Even at 3.7, it is above the rated maximum for an SD card. The SD card
spec has a rated voltage range of 2.7 to 3.6v (SD2 cards ... |
Topic: 18F45K22 SPI SDCARD Read Speed Problem |
eaydin
Replies: 20
Views: 48099
|
Forum: General CCS C Discussion Posted: Sun May 29, 2022 11:38 pm Subject: 18F45K22 SPI SDCARD Read Speed Problem |
VCC 3.7V lion battery. I use 0.1uF capacitor on power stage. I try more capacitor in space assembly on circuit breadboard. |
Topic: 18F45K22 SPI SDCARD Read Speed Problem |
eaydin
Replies: 20
Views: 48099
|
Forum: General CCS C Discussion Posted: Fri May 27, 2022 5:00 am Subject: 18F45K22 SPI SDCARD Read Speed Problem |
hi temtronic.
I have new version compiler. 5.109 version.
sd card pin to pin serial connect on the board. dont have resistor.
Schematic:
https://i.hizliresim.com/8gypm01.png
TFT Modul ... |
Topic: 18F45K22 SPI SDCARD Read Speed Problem |
eaydin
Replies: 20
Views: 48099
|
Forum: General CCS C Discussion Posted: Fri May 27, 2022 3:36 am Subject: 18F45K22 SPI SDCARD Read Speed Problem |
I am having trouble reading SD CARD with 64 MHZ clock frequency. Communication is not possible. It actually takes a long time to read the card. After reading the file inside the card (55 seconds), it ... |
Topic: 18F45K22 SPI SDCARD Read Speed Problem |
eaydin
Replies: 20
Views: 48099
|
Forum: General CCS C Discussion Posted: Fri May 27, 2022 2:36 am Subject: 18F45K22 SPI SDCARD Read Speed Problem |
Hello again.
I got good results with 32 MHZ. But my 64MHZ clock frequency stays high. 48MHZ is my max clock frequency. We can run it internally as 8-16-32-64 with PLL. Can I run 48MHZ with internal o ... |
Topic: 18F45K22 SPI SDCARD Read Speed Problem |
eaydin
Replies: 20
Views: 48099
|
Forum: General CCS C Discussion Posted: Wed May 25, 2022 12:47 pm Subject: 18F45K22 SPI SDCARD Read Speed Problem |
Seriously, you need ro update your compiler. 5.007, was beta at best and
has huge numbers of problems
You need to set the clock in the delay statement to _match_ the clock
you are selecting.
If yo ... |
Topic: 18F45K22 SPI SDCARD Read Speed Problem |
eaydin
Replies: 20
Views: 48099
|
Forum: General CCS C Discussion Posted: Wed May 25, 2022 8:58 am Subject: 18F45K22 SPI SDCARD Read Speed Problem |
How old is your compiler?.
The newest compilers correctly program the PLL. However older compilers
sometimes did not.
If you have an old compiler then leave the #use delay at 64MHz,
but put back ... |
Topic: 18F45K22 SPI SDCARD Read Speed Problem |
eaydin
Replies: 20
Views: 48099
|
Forum: General CCS C Discussion Posted: Wed May 25, 2022 2:26 am Subject: 18F45K22 SPI SDCARD Read Speed Problem |
I noticed something. After using the #define SDCARD_SPI_HW command, it was reduced to 1 minute 34 seconds. So the PIC still works at 16MHZ. It can be 18F45K22 INT OSC 16MHZ. 16X4=64MHZ working with PL ... |
Topic: 18F45K22 SPI SDCARD Read Speed Problem |
eaydin
Replies: 20
Views: 48099
|
Forum: General CCS C Discussion Posted: Wed May 25, 2022 1:51 am Subject: 18F45K22 SPI SDCARD Read Speed Problem |
First, change your #use delay, and get rid of the setup_oscillator.
#use delay(internal=64MHz)
//setup_oscillator(OSC_16MHZ|OSC_PLL_ON)
You are currently telling the compiler you are running ... |
Topic: 18F45K22 SPI SDCARD Read Speed Problem |
eaydin
Replies: 20
Views: 48099
|
Forum: General CCS C Discussion Posted: Wed May 25, 2022 12:58 am Subject: 18F45K22 SPI SDCARD Read Speed Problem |
Hello,
I draw Bitmaps using PIC18F45K22, ST7735 1.8″ TFT and SD card.
I have a problem. I define TFT and SD CARD connections manually. I am not using hardware definition. SPI1 outputs for SDCCA ... |
|