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.
I didn't see it. Can you show me where should I view the simulation video you mentioned?
Thanks!
- - - Updated - - -
As you can see in the attached picture.
The PORTC and PORTB are all colored blue which signifies that its voltage output is zero.
It is always like that in my screen that's I...
I am not trying to vary the PWM.
I just want to see that the PWM is really working at a certain duty cycle specified in the code.
There must be a blinking of LEDs even without varying the PWM, right?
I cant see it blinking in my simulation.
Hi All!
I am trying to work with PWM. I understand the concept of PWM but when I tried the mikroC sample for PWM at PIC16f877A it doesn't show any significant result. I configured the PIC16f877A project at 8MHz crystal so as the proteus project.
unsigned short current_duty, old_duty...
Can any body here show me some basic syntax in initializing the CANTX and CANRX port in pic18f2680?
Please help me the basic transmit and received the data.
Thanks!
Thanks!
It helps me a lot on making DIGITAL INPUT on portA and DIGITAL OUTPUT on portC. My code is working fine now.
Thank you.
Can you show me a short example on UART syntax?
Below is the code in mikroC:
char uart_rd;
void main() {
// ANSEL = 0; // Configure AN...
Here is the code I made.
#include<p18f2680.h>
void main(){
TRISA = 0xFF; // Configure PORTA as input
TRISC = 0; // Configure PORTC as output
PORTC = 0x00;
while(1){
If(PORAbits.RA0 == 0){
LATCbits.LATC0 = 1;
}
}
}
Is there some command missing? please help. Thanks!
I am using Hitech C Compiler.
How to disable Analog Input since PortA can also be configured as analog input?
I want to detect if portA.f0 is trigged by setting portc.f0 equal to 1 but my code didnt work well.
I am new to PIC18 series. And I'm having difficulties regarding PIC18f2680 in MPLAB using C compiler.
Can anybody help me with a short sample for:
Input/Output PORT settings
-I am configuring PORTA as digital INPUT while PORTC as digital output.
Serial UART
-Sample UART syntax...
The code above works fine.
Thanks!
One more thing, Why is it that the interrupt will be triggered only if I applied a 5V supply to either pins of RB4-RB7?
While Pins RB0-RB3 is has no response at all!
Also, inside the interrupt function I can't use some commands (e.g. Lcd_Out(1,3,"Hello...
I already done that part above. In fact, my LCD is working properly already.
I am using MikroC 3.2. The only problem I got is on interrupt implementation.
For me to use the interrupt pins I replaced some of pins in PORTB for my LCD as shown below.
// LCD module connections
sbit LCD_RS at...
Hi Tahmid,
I am also trying to use interrupt function in PIC18f4550 with mikro C to write my code.
I simulated my system with Proteus.
While trying to use my interrupt portb, I also use some of portB pins for my LCD display.
Below is my interrupt codes.
Please have some advice... Thanks...
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.