Author |
Message |
Topic: Timer0 configuration |
luis.rigoni
Replies: 1
Views: 4034
|
Forum: General CCS C Discussion Posted: Thu Apr 21, 2011 10:42 pm Subject: Timer0 configuration |
Hello everyone,
I'm using PIC18LF4550 with a 20MHz crystal. My #fuses are:
//configure a 20MHz crystal to operate at 48MHz
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL5,CPUDIV1,VREGEN
... |
Topic: Op-Amp to match the SD card and a 5V powered PIC |
luis.rigoni
Replies: 14
Views: 12039
|
Forum: General CCS C Discussion Posted: Tue Nov 02, 2010 8:48 pm Subject: Op-Amp to match the SD card and a 5V powered PIC |
Attach a pot to it's input, or a signal generator with a variable amplitude, and put a scope on the output, and test if it does switch 'high' at about 2v, and 'low' somewhere at about 0.5v.
I put a ... |
Topic: Op-Amp to match the SD card and a 5V powered PIC |
luis.rigoni
Replies: 14
Views: 12039
|
Forum: General CCS C Discussion Posted: Tue Nov 02, 2010 4:11 pm Subject: Op-Amp to match the SD card and a 5V powered PIC |
Thanks for the replies!
To do that, means that you will use "bit banging" i/o for the SPI instead of using the hardware SPI.
Maybe I expressed myself badly. I want to use the hardware ... |
Topic: Op-Amp to match the SD card and a 5V powered PIC |
luis.rigoni
Replies: 14
Views: 12039
|
Forum: General CCS C Discussion Posted: Sat Oct 30, 2010 10:13 pm Subject: Op-Amp to match the SD card and a 5V powered PIC |
Hello everyone,
Much has been said that the DO line of an SD card is not compatible with the DI pin of a PIC running at 5V, because the card works with 3.3V and can not supply enough voltage to a g ... |
Topic: usb bootloader and timer0 |
luis.rigoni
Replies: 16
Views: 33135
|
Forum: General CCS C Discussion Posted: Sat Oct 30, 2010 10:26 am Subject: usb bootloader and timer0 |
Oops! My bad...
Thank Ttelmah and PCM. It worked perfectly!
Now I've learned:
|
Topic: usb bootloader and timer0 |
luis.rigoni
Replies: 16
Views: 33135
|
Forum: General CCS C Discussion Posted: Sat Oct 30, 2010 8:55 am Subject: usb bootloader and timer0 |
Create a global flag variable and initialize it to False. Use the Timer0 isr,
but the only code inside it will be to set the flag = True.
In your while loop in main(), get rid of the delay_ms(1000 ... |
Topic: usb bootloader and timer0 |
luis.rigoni
Replies: 16
Views: 33135
|
Forum: General CCS C Discussion Posted: Fri Oct 29, 2010 4:42 pm Subject: usb bootloader and timer0 |
Comment out the Timer0 interrupt routine, and also the lines that enable interrupts. Move the isr code into a while loop in main(). Put a delay_ms(1000) statement at the end of the while loop.
I d ... |
Topic: usb bootloader and timer0 |
luis.rigoni
Replies: 16
Views: 33135
|
Forum: General CCS C Discussion Posted: Fri Oct 29, 2010 3:31 pm Subject: usb bootloader and timer0 |
Hello, I'm having problems using a USB bootloader and timer0 with PIC18F4550. I have loaded the EX_USB_BOOTLOADER.C the pic.
In my application I'm trying to send a message through USB to the PC con ... |
Topic: Modifications to access an SD card and view data via USB |
luis.rigoni
Replies: 3
Views: 3953
|
Forum: General CCS C Discussion Posted: Fri Oct 22, 2010 8:07 am Subject: Re: Modifications to access an SD card via USB |
Maybe I expressed myself wrong. I want the PIC to communicate with the SD card via the SPI interface, of course. But instead of the PIC to communicate with PC via RS232 I want it via USB. |
Topic: Modifications to access an SD card and view data via USB |
luis.rigoni
Replies: 3
Views: 3953
|
Forum: General CCS C Discussion Posted: Thu Oct 21, 2010 10:03 pm Subject: Modifications to access an SD card and view data via USB |
Hello,
This question may sound noob, but ... how do I modify the example "ex_fat.c" to work with the PIC18F4550 and USB?
--> EDIT: Maybe I expressed myself wrong. I want the PIC to ... |
Topic: ex_fat.c problem with SPI |
luis.rigoni
Replies: 3
Views: 3995
|
Forum: General CCS C Discussion Posted: Thu Oct 14, 2010 12:42 pm Subject: ex_fat.c problem with SPI |
Your compiler version doesn't support those new features.
Is there any way to fix the code to make it compatible with the compiler? |
Topic: ex_fat.c problem with SPI |
luis.rigoni
Replies: 3
Views: 3995
|
Forum: General CCS C Discussion Posted: Thu Oct 14, 2010 9:33 am Subject: ex_fat.c problem with SPI |
Hello,
I'm starting to develop an SD card reader with the PIC18F4550. Communication with the PC is via USB. USB communication is OK.
However when compiling the file ex_fat.c generates 100 errors.
... |
|