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.
Hi all,
I have a project, below is the requirement:
-> Control LED brightness + blinking rate(OnTime and OFFtime).
I am able to control the LED brightness using PWM.
My idea is using Timer to set the blinking. How can I compile the PWM and TIMER together?
Microcontroller: Freescale...
how to generate delay in 18f4620
I have changed my Crystal to 20MHz.
C Compiler: MCC 18
below is my configuration settings:
Address Value
300000 - 0x24
==============
96MHz PLL Prescaler : Divide by 5 (20Mhz Input)
CPU System Clock Postscaler : [OSC1/OSC2 Src: /1][96MHz PLL Src: /2]...
delay_us
Hi all,
I having a problem to generate a 1us delay in my program.
Details:
IC - 18F4550
Crystal - 4MHz
Compiler - C18
I am able to generate 1us by calling function "Delay1TCY()" 12 times. But I convert it to for..next to run 12 times, it will generate longer than 1us.
Is there any...
mcc18 opentimer1
Hi shashavali_m,
after OpenTimer1(...), T1CON value was 0x35
Hi umery2k75,
I already set the global interrupt to enable.
INTCON=0b10000000;
INTCON.7 = GIE/GIEH: Global Interrupt Enable bit.
thanks.
Added after 4 hours 20 minutes:
Hi all,
I found another example and it...
pic timer interrupt
Hi all,
I have tried the code below to generate an interrupt after timer1 overflow. but it does not working.
Can anyone help to correct my code? or give me a simple example of timer interrrupt?
thanks.
#include <timers.h>
#include <p18cxxx.h>
void timer1_isr(void)...
thanks. i understand the memory size already.
but i still cant understand wat r the different between
14-bits op-code vs. 8-bits op-code...
hope you can give me a sample on it.. thanks a lot.
because the PIC16F876 datasheed showing that
368 x 8 bytes,after the 8 following with 'bytes' not 'bits', so i confuse on the number of 8 is represent of 'bit' or 'byte'.
Hi all,
I am fresh to PIC controller, i hv some basic microcontroller question need you help..
Question 1:Memory Size:
For 8051, datasheet written
- 128 x 8-bit Internal RAM
is that means 1 memory location can store 8-bits data. total hv 128 memory location, so the total memory RAM size is...
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.