PIC16F877A/PIC16F887/PIC16/18F*** interface CH340 USB to TTL device

  Рет қаралды 17,148

Learning Microcontrollers

Learning Microcontrollers

Күн бұрын

Hello guys Welcome to learning microcontrollers,
Guys I had made a course for you guys on Udemy.
This course will teach you how to directly get your hands dirty on arduino and make useful projects to earn money.
Please do take this course on udemy this will greatly help me to grow my channel.
You will assisting my channel by paying for that course.
Here is the link to the course:
www.udemy.com/...
A quote:
Learn from cradle to grave.
/
/
/
////////////////////// Hello Guys,
Welcome to learning Microcontrollers.
I had made a course for you guys to learn under my direction supervision on Udemy.
This course will make you a master of PIC microcontroller based projects making using MikroC for PIC software.
Please do take this course the link is below. This will greatly help my channel aswell to grow.
www.udemy.com/...
A beautfiul quote:
The road to sucess is always under construction.
/
/
///////////////////////////////////////////////////// Hello folks,
This video is about how to interface a PIC wih CH340 device to interface with a computer or any other device using USB port.
If there is any problem feel free to comment:
Guys here is a link to remastered version of this video tutorial:
• Full duplex communicat...
Here is the code:
char rec1;
void main() {
TRISB.B7=0;
TRISB.B6=0;
UART1_INIT(1200);
DELAY_MS(400);
PORTB.B7=0;
PORTB.B6=0;
while(1)
{
if (UART1_Data_Ready() == 1) {
rec1 = UART1_Read();
DELAY_MS(200);
}
if ( rec1 == '1')
{
PORTB.B7=1;
DELAY_MS(800);
PORTB.B7=0;
rec1 = '0';
}
else if ( rec1 == '2')
{
PORTB.B7=1;
PORTB.B6=1;
DELAY_MS(800);
PORTB.B7=0;
PORTB.B6=0;
rec1 = '0';
}
else
{
PORTB.B7=0;
PORTB.B6=0;
rec1 = '0';
}
}
}

Пікірлер: 31
@MuhammadSaleem-vv5nb
@MuhammadSaleem-vv5nb 11 ай бұрын
V informative vedio
@learningmicrocontrollers3561
@learningmicrocontrollers3561 10 ай бұрын
Thanks
@fahimi.saiyed8939
@fahimi.saiyed8939 Жыл бұрын
Can you tell me which software ? And can i Program atmega32 using AVRasp or FT322xx programmer with the Avrdudes application or other?
@learningmicrocontrollers3561
@learningmicrocontrollers3561 Жыл бұрын
mention complete model of microcontroller are you talking about ATmega328p ?
@JaySubramaniam-u4p
@JaySubramaniam-u4p Ай бұрын
you have a PIC 3.5 to download the code to the PIC so why use the USB CH340 ?
@learningmicrocontrollers3561
@learningmicrocontrollers3561 Ай бұрын
@@JaySubramaniam-u4p bcz USB is used for data transfer to PC You cannot use PICKIT to transfer or receive data bcz that use flash method of burning code
@rajithperera9040
@rajithperera9040 3 жыл бұрын
Can we connect this to an android smart phone instead of a computer and perform this test?
@learningmicrocontrollers3561
@learningmicrocontrollers3561 3 жыл бұрын
Yes sure You need an OTG and some serial app There are so many in play store
@yasirh2004
@yasirh2004 4 жыл бұрын
Is there any way to burn code on the pic using ttl or using rs to usb cable and max232 ic how they made pickit2 to burn hex using usb then
@learningmicrocontrollers3561
@learningmicrocontrollers3561 4 жыл бұрын
For that you need a good pic18 Capable of using HID bootloader in tools from mikroC Crystal must be above 40MHz
@yasirh2004
@yasirh2004 4 жыл бұрын
Learning Microcontrollers // i already have one pic18f4550 and i have usb to rs cable and max232 what should i do next
@learningmicrocontrollers3561
@learningmicrocontrollers3561 4 жыл бұрын
@@yasirh2004 you need a device like ch340 usb to ttl converter Connect it to pc Install drivers Go to mikroC tools In end you will see usb bootloader Click it Select pic18 Then select code and click on upload If pic you have supports it It will work
@yasirh2004
@yasirh2004 4 жыл бұрын
Learning Microcontrollers // i’ll try this method really appreciate your help thank you very much
@moinshaikh6684
@moinshaikh6684 4 жыл бұрын
Can we burn code in PIC16 microcontroller using this CH340 porgrammer which you're using in this video..? Sir please guide...?
@adhil8918
@adhil8918 3 жыл бұрын
Thanks bro
@ar.mamunhossain9592
@ar.mamunhossain9592 Жыл бұрын
Will it work for PIC16C56A?
@learningmicrocontrollers3561
@learningmicrocontrollers3561 Жыл бұрын
it will not bcz you need a UART port only those PICs which have UART port will work.
@imranarshad4737
@imranarshad4737 3 жыл бұрын
So. Real... Nice!
@synth1002
@synth1002 Жыл бұрын
Tike. Can you make data logger with this. Please make tutorial about connecting PIC to PC and logging temperature data.
@learningmicrocontrollers3561
@learningmicrocontrollers3561 Жыл бұрын
Yes sure Will make a video soon
@synth1002
@synth1002 Жыл бұрын
@@learningmicrocontrollers3561 Thank You.
@shradhas45
@shradhas45 4 жыл бұрын
Is it necessary to write UART code to dump using usb 2ttl
@learningmicrocontrollers3561
@learningmicrocontrollers3561 4 жыл бұрын
Yes... Because we are using TX and RX pins to send and receive data... Without code PIC wont be able to understand whats comming... there some PIC usb boards for burning they use same device as on board component... they use additional chip which burns this code with everytime we use usb burner to burn... you can do the same but for that you have to permanently burn the uart code in pic yourself. Without uart port initialized PIC cant interface with any UART device. But if you do this then you can use this same device to burn any code in PIC this device is 10 times cheaper then PIC kit 3 or any other board. But require effort.
@electricalcoder3025
@electricalcoder3025 4 жыл бұрын
can we put this pic in a bread board and connect to pc using usb to ttl ...will i be able to upload the code?
@learningmicrocontrollers3561
@learningmicrocontrollers3561 4 жыл бұрын
For uploading code using ttl to usb devicr you need a PIC which can support a crystal of 48MHZ or above Mostly PIC18 support this crystal Then you go to mikroC there in tools goto HID bootloader Connect device and ttl to usb device Then press upload code That will do
@electricalcoder3025
@electricalcoder3025 4 жыл бұрын
@@learningmicrocontrollers3561 yeah thanks dude...have ever did it directly without development board or is it successful there less tutorials on internet regarding that
@learningmicrocontrollers3561
@learningmicrocontrollers3561 4 жыл бұрын
I will make a video regarding that soon Everything that i show works on breadboard aswell
@mustaphasabir6685
@mustaphasabir6685 4 жыл бұрын
Thanks dear
@hamzouz1229
@hamzouz1229 2 жыл бұрын
Thank you. Can we burn a hex file or read firmware using this module?
@learningmicrocontrollers3561
@learningmicrocontrollers3561 2 жыл бұрын
For that you need USB supported pic Having above 40 MHZ crystal
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 19 МЛН
didn't manage to catch the ball #tiktok
00:19
Анастасия Тарасова
Рет қаралды 33 МЛН
Ouch.. 🤕⚽️
00:25
Celine Dept
Рет қаралды 10 МЛН
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 8 МЛН
CH340C USB Serial Adapter 3-Wire Breadboard Test
49:01
John's Basement
Рет қаралды 5 М.
How does USB device discovery work?
36:15
Ben Eater
Рет қаралды 305 М.
Hacker's Guide to UART Root Shells
17:40
Flashback Team
Рет қаралды 491 М.
UART Driver From Scratch :: Bare Metal Programming Series 5
1:10:52
Low Byte Productions
Рет қаралды 18 М.
PIC16F877A LM35/LM36 Temperature sensor interface using MikroC coding
33:51
Learning Microcontrollers
Рет қаралды 8 М.
Are PIC Microcontrollers Any Good? - Beyond Arduino #4
21:07
Sine Lab
Рет қаралды 45 М.
PIC16F877A a basic Introduction
7:01
Learning Microcontrollers
Рет қаралды 26 М.
USB: From Introduction to Rapid Development
29:17
Texas Instruments
Рет қаралды 19 М.
Your first microcontroller project!
19:44
FriendlyWire
Рет қаралды 68 М.
Intro to Hardware Reversing: Finding a UART and getting a shell
12:07
Tony Gambacorta
Рет қаралды 898 М.
黑的奸计得逞 #古风
00:24
Black and white double fury
Рет қаралды 19 МЛН