Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
You did indeed, but on post #2 you mentioned also USB besides the 48MHz and I wanted nothing to do with USB and created confusion for me.
In post #5 you mentioned only 4xPLL and PIC18F4550 has all kind of setup, divisions and that confused me second time.
You said it right, I understood it wrong.
I have asked on Proteus forum and it seems I have to specify the Clock Frequency 16MHz, the same as the external crystal, then the instruction clock works at 48Mhz.
Follow here:
https://support.labcenter.com/forums/viewtopic.php?f=9&t=6899&p=22879#p22879
That is a very nice offer from you. I would be happy if you can make it run.
Please see the Proteus project and the MPLABX XC8 code in the link below which I provided since the beginning with my first post:
https://goo.gl/nPKKj2
I just need PIC18F4550 to work proper with 48 MHz CPU frequency...
I’ve got the proof, the game ends here.
I have setup an I2C communication between PIC18F4550 as Master and PIC16F877A as Slave. All is done with MPLABX XC8 and then simulated in Proteus. And it works fine.
When the simulation starts, there is a message about PIC18F4550 saying:
“
[PIC18]...
I guess there is confusion here about the PIC18F4550 clock(s).
There are 2 clocks for PIC18F4550: one for USB and one for CPU. They can relate.
I want the microcontroller to run at 48MHz for the program/instruction, the CPU clock (FOSC).
To achieve 48MHz we have to use an external crystal and...
I have tried a simple project with LED blink on/off using PIC18F4550.
The compilers used are XC8 and CCS. I have used as IDE: MPLABX, CCS and Flowcode 7 (with XC8).
When the projects are burned on real device and I check with the oscilloscope the signal at pin RA0, then there is no problem.
If I...
I will consider your recommendation and instead of going from 0 to PI, I will go only to PI/2 as in example below:
#include <16F1825.h>
#fuses NOFCMEN ,NOIESO, NOCLKOUT, BROWNOUT, NOCPD, NOPROTECT, NOMCLR, NOPUT, NOWDT, INTRC_IO
#fuses NOLVP, NODEBUG, BORV19, NOSTVREN, PLL, NOWRT
#use...
"What do you mean with "smooth"? Describe it."
Right now I can see the stairs on oscilloscope on certain parts of the sine-wave. I can measure up tp 30mV height for one step.
I would like to have it 1mV.
I use a look-up table with only 100 entries. I could probably go up to 175 entries, but...
Before I will show you the screenshots from Proteus, I think is better to look at the main Configuration Bits in Configuration Word 1 and Word 2 as appear in the C project.
Because I have tried with several compilers, let’s focus now on one. Below is the MPLABX with C code for XC8 compiler.
The...
@Okada
I do not use the external crystal. I use the internal clock with oscillator set at 8MHz+PLL and I get 32MHz as Fosc.
@andre_teprom
I see nothing there, no signal and Proteus runs for 2min continuously. Then I tried instead of oscilloscope to use the timer/counter and probe+digital graph...
I have tested it with PIC16F1825 at 32MHz internal clock.
At CLKOUT pin, OSC2, PORTA, RA4 it suppose to come a rectangular signal with a frequency Fosc/4=8MHz and is not there, the virtual digital oscilloscope does not show it.
I have tested the same HEX code on a real PIC16F1825 and I measured...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.