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.
Did you ever use MikroC?
Delay_ms(1) doesn't magically know how long the microsecond takes. In all PIC18F, PIC16F, PIC32MX, and dsPIC, this function is taking the "MCU Clock Frequency [MHz]" from Project Settings and it calculates the proper delay based on that.
I have experienced it many...
hey
I have a simple setup with P32MZ2048EFH144
It has no external oscillator.
I have a simple code with Delay_ms(1000) which appears to work fine (the led blinks at about 1 second)
But....
I think there is something I dont understand.
Take a look:
No matter what I set in "MCU Clock Frequency...
Hey, can someone recommend me the cheapest programmer for C8051F300 module sold on ebay?
The same module from this thread: https://www.edaboard.com/showthread.php?367572-Schematic-for-C8051F300-module
Preferrably the programmer tool should be also sold on ebay.
Thank you.
Hey
I am using dsPIC30F4011 with 16 MHz crystal.
I am using mikroC for dsPIC.
I have such code:
void main() {
int pwm_period1;
int i;
ADPCFG = 0xFFFF;
// initialize PWM 1, using scale 1, and Timer 2....
pwm_period1 = PWM_Init(500 , 1, 1, 2);
PWM_Start(1)...
Ok so I NEED TO USE EXTERNAL CRYSTAL.
But which crystal should I use?
20Mhz?
12Mhz?
http://wormfood.net/avrbaudcalc.php
This table says that even 8MHz is OK (eg. for 300) so I dont get it.
- - - Updated - - -
I HAVE GAVE UP.
It seems it's really not possible to get UART running with internal...
I does not print at all, you have set "Internal Low power RC" and not "Internal Fast RC".
Anyway, I've tried rebuilding the hex, changing RC to Fast, and changing baud rate to 9600, but still no luck (trash data in Terminal).
There is mentioned a "FRC 8 MHz internal RC oscillator" setting ("FRC"), without any PLL, but I have only FRC+PLL settings in mikroC...
Also do you mean that it's better to use internal oscillator for precise timing???
EDIT: In that configuration field for MHz, do I have to enter 8MHz...
It does not work no matter what I do.
char uart_rd;
void main() {
ADPCFG = 0xFFFF; // Configure AN pins as digital I/O
UART2_Init(4800); // Initialize UART module
Delay_ms(100); // Wait for UART module to stabilize
UART2_Write_Text("Start")...
Hey guys
The question is simple
Is UART working with dsPIC30F4011 but with INTERNAL OSCILLATOR?
I mean UART2_Init, UART2_Write_Text, etc.
Do I have to use external eg. 20MHz or so oscillator or will it work with internal??
Thanks in advance
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.