LCD Code Improvements 🔴 PIC Microcontroller Programming Tutorial #24 MPLAB in C

  Рет қаралды 2,211

Binder Tronics

Binder Tronics

Күн бұрын

Пікірлер: 16
@BinderTronics
@BinderTronics 4 жыл бұрын
Full playlist on the PIC microcontroller Programming kzbin.info/www/bejne/gYSsZ5mwhLWJsJI If there is anything you would like to see let me know.
@trysxit2236
@trysxit2236 2 жыл бұрын
I will see your videos, the problems your videos are direct to pic, and I work with atmega, but it's like the same but for learning its a litle dificult, but no problem, can you tell me anithing about 5x8 dot and 5*11 dot, can I set fonte size 5*11 on the DDRAM character ou just can use 5*11 on character generator ??
@ravenstone01
@ravenstone01 4 жыл бұрын
These tutorials have been FANTASTIC.. I have a couple Aurdino boards, but I am addicted to the PIC chips.. I don't know if people let you know, but you have been a big asset for the PIC microchips.. I wish more people did videos on these chips, they really are good chips and sometimes more fun than the Arduino because you can get more involved with the chips.. Thank you for your time and support.. You are the best.
@philbourdon9855
@philbourdon9855 4 жыл бұрын
Seeing a project with NRF modules (they use SPI communication) would be awesome. Anyways, I have been transitioning from arduino to PICs and your videos have been helping me out a lot, so I just want to say Thank you so much🤙🏼
@BinderTronics
@BinderTronics 4 жыл бұрын
It's on the list. Working on an basic SPI tutorial at the moment. Will look into it after that.
@charlescarnes6982
@charlescarnes6982 4 жыл бұрын
I got it working but I couldn't / don't know to display a floating point value. I tried (%1.3f , 1234) and a couple of other things. Thanks for a good video.
@ravenstone01
@ravenstone01 4 жыл бұрын
Also forgot to ask what programmer you use..? I have the PicKit3, but am looking at getting the PicKit 4.. Any opinions on the 4th version?
@BinderTronics
@BinderTronics 4 жыл бұрын
Using a PicKit3. Don't really have strong opinion on the PicKit4. Would probably buy one if I run into a chip that i can't program with the PicKit3 or J-link. Depending on your budget I would recommend buying the latest hardware if you can.
@trysxit2236
@trysxit2236 2 жыл бұрын
hello friend, nice project and good explanation. I'm started in embedded system, I already have some sub-routine work for controller lcd 40x02, with atmega 328p with ST7066 driver. but I have a problem with the "function set" I can't choice the fonte size 5*11, only can work with 5x8 dots font size. can you help me please try understund with can´t put the function set work correctly? thanks for your time
@BinderTronics
@BinderTronics 2 жыл бұрын
Post the binary value you are sending as the function set, including your RS and RW.
@ethanarchambault2133
@ethanarchambault2133 4 жыл бұрын
How are you sending the data via PuTTY to the PIC? Nothing I type in my PuTTY terminal appears to get sent to the PIC.
@BinderTronics
@BinderTronics 4 жыл бұрын
kzbin.info/www/bejne/poHQdoqifr51r9E
@Actinuon
@Actinuon Жыл бұрын
So I noticed that you #define variables to alias your LATxbits. When I do this, they are "Not Recognized" during debugging making it a headache to troubleshoot. If I predefine them above the #defines AND add a bool between the #define and the variable. Then they resolve perfectly, but that makes the compiler very angry, but still spits out my code. Is there a solution for this that you're aware of?
@BinderTronics
@BinderTronics Жыл бұрын
You are going to need tp show me what you are doing that the compiler is displeased with. It sound like you are redefining the values and that is why the compiler is complaining. !define LCD_DATA(x) do{ LATB = x;}while(0); may make GDB resolve the macro correctly. Just note I am replacing `#` with `!` because the comment filter does not like the `#` symbol (creates a hyperlink).
@Actinuon
@Actinuon Жыл бұрын
​@@BinderTronics Well honestly, I loaded the program back up today, and it compiled, but did not work at all. I was definitely double defining it. It did however allow the GDB to resolve the macro... for a time. What IS working to run the code, but NOT allowing the GDB resolve the macro is this. !define Data1 LATCbits.LATC5 What DID work for a time was this. (albeit warnings) bool Data1; !define Data1 LATCbits.LATC5 Would your solution of do{LATB = x;}while(0) help the GDB resolve this? I'm defining each bit to allow me to run a straight wired bus to the LCD to keep the board nice and tidy. If it could help, would it be written like this? !define Data1 LATCbits.LATC5 do{LATCbits.LATC5 = Data1;}while(0);
@BinderTronics
@BinderTronics Жыл бұрын
Do it like this. It may or may not help. !define Data1(x) do{LATCbits.LATC5 = x;}while(0); how to use: Data1(1) // same as LATCbits.LATC5 = 1; Data1(0) // same as LATCbits.LATC5 = 0; Honestly surprised this compiles bool Data1; !define Data1 LATCbits.LATC5 This will break something. never tried something like this. If GDB refuses to resolve try using LEDs on the data lines or if you got a logic analyzer use that or watch the IO registers instead of the variable.
How to interface an LCD with PIC18 Microcontroller
18:50
GhostyDigits
Рет қаралды 12 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
5- Interfacing an LCD Display | MPLAB XC8 for Beginners Tutorial
20:51
StudentCompanion Electronics
Рет қаралды 115 М.
The World Depends on 60-Year-Old Code No One Knows Anymore
9:30
Coding with Dee
Рет қаралды 1 МЛН
you will never ask about pointers again after watching this video
8:03
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 212 М.
My 10 “Clean” Code Principles (Start These Now)
15:12
Conner Ardman
Рет қаралды 315 М.
computers suck at division (a painful discovery)
5:09
Low Level
Рет қаралды 1,7 МЛН
Menu with voice & rotary encoder - Arduino
15:01
Electronoobs
Рет қаралды 103 М.
Every Programming Language Ever Explained in 15 Minutes
15:29
Flash Bytes
Рет қаралды 366 М.