No video

PIC MCU TUTORIALS #13 - TRIS, LAT, PORT registers & I/O explained (Absolute Beginner)

  Рет қаралды 8,737

Microesque

Microesque

Күн бұрын

Пікірлер: 27
@maiszaaim8843
@maiszaaim8843 Ай бұрын
best yt tutor ever
@Microesque
@Microesque Жыл бұрын
There is something I forgot to mention in the video. Some of the older microcontrollers don't have "LAT" registers, like the famous PIC16F877(A). The idea of a separate "LAT" register was conceived later on. Those microcontrollers directly write to their "PORT" registers to change their outputs, hence the confusion of whether to read from or write to the "PORT" or "LAT" registers I mentioned in 11:58 .
@shimmeringtrashpile
@shimmeringtrashpile 9 ай бұрын
This is a frickin awesome. Thank you. Also, thanks for your comment about LAT or PORT confusion.
@Microesque
@Microesque 9 ай бұрын
Thanks 👍
@proxy7547
@proxy7547 3 ай бұрын
you are the best !
@Microesque
@Microesque 3 ай бұрын
Thanks 👍
@subhm1747
@subhm1747 2 жыл бұрын
Crystal clear explaination!
@icarossavvides2641
@icarossavvides2641 6 ай бұрын
Very interesting, at about 15:45, you mention maximum source and sink currents, whilst the user needs to take notice of these limits they must also take in to account the maximum chip dissipation i.e. don't expect to be able to source or sink the maximum current through all the IO pins at the same time.
@Microesque
@Microesque 6 ай бұрын
Of course. I was just trying to keep it simple since most of them rarely matter 👍 There are a bunch of limiting factors, and which ever one is the most limiting will apply. Max instantaneous current, max continuous current, max port current, max device current, max temperature, max power dissipation etc... Also, these are absolute maximum values. Ideally, you should never get close to these.
@anithasshenoy6662
@anithasshenoy6662 5 ай бұрын
I have not seen registers explained in a more simpler manner. I have trying to understand these , but found too much of undigestable jargon. Tris registers -> PIN as INPUT or OUTPUT Lat registers -> PIN as HIGH or LOW Port registers -> READS PIN HIGH or LOW ANSEL registers -> PIN as ANALOG or DIGITAL WPU -> Enable / Disable INTERNAL PU-UP Resistors How simple to understand!! Great job. Thank you.
@Microesque
@Microesque 5 ай бұрын
Glad you found it useful 👍
@maheshlokhande.3080
@maheshlokhande.3080 Жыл бұрын
great explanation sir!...hats off!
@2koenusz
@2koenusz 2 жыл бұрын
very nice and clear explanations
@youssefghriss1726
@youssefghriss1726 2 жыл бұрын
perfect timing man thank you
@Codem750
@Codem750 Жыл бұрын
A very good video, thanks
@BigA1
@BigA1 2 жыл бұрын
Another brilliant video. I was trying to find the syntax for writing to the OSCCON register and there it was. Could you let us know which Microchip document has the XC Compiler language definition.
@Microesque
@Microesque 2 жыл бұрын
Everything you need to know about XC8 compiler will be in the "XC8 Compiler User's Guide". XC8 is a compiler that uses C language, it doesn't have a language of its own. But if you're talking about things like "OSCCONbits..." those are called "bit fields" (which is still C language). Check the section 5.3.6 in the XC8 User's guide: ww1.microchip.com/downloads/en/devicedoc/50002053g.pdf If you still don't understand, Google "Bit fields in C".
@michapoterek2034
@michapoterek2034 Жыл бұрын
Cool!
@sayyidsahal1996
@sayyidsahal1996 2 жыл бұрын
👍👍
@OviMG
@OviMG 7 ай бұрын
Ok, but the question is, does the led turn on when bit is 1 or bit is 0? TRISE = 0b11111110; LATE = 0b00000001; because from this code the led (coresponding to the last bit) is turning OFF, while you said "1" is for turning the led ON
@Microesque
@Microesque 7 ай бұрын
When the LAT bit is 1, the pin connects to positive rail; if the LAT bit is 0, the pin connects to ground, that's all LAT bit does. If the cathode (-) pin of your led is connected to the microcontroller and the resistor connected to the positive rail, the LED will turn on when the LAT bit is 0.
@OviMG
@OviMG 7 ай бұрын
@@Microesque Thank you so much! Now, it makes sense!
@Microesque
@Microesque 7 ай бұрын
@@OviMG np 👍
@utkugulgec5508
@utkugulgec5508 Жыл бұрын
Hey, where are you from? Your accent really resembles to a native Turkish.
@Microesque
@Microesque Жыл бұрын
Indeed, I'm from Turkey, but I think you already know that. 😅 I'd be very impressed if you could discern where I'm from through my accent.
@utkugulgec5508
@utkugulgec5508 Жыл бұрын
@@Microesque well I can't say I can pick that up :/
@rajashekharvarad3554
@rajashekharvarad3554 Жыл бұрын
Ultimate... Explanation.... Impressed lot. Please share ur email id if possible
Incredible Dog Rescues Kittens from Bus - Inspiring Story #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 27 МЛН
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 10 МЛН
Malware Development: Processes, Threads, and Handles
31:29
Are PIC Microcontrollers Any Good? - Beyond Arduino #4
21:07
Sine Lab
Рет қаралды 42 М.
Writing My Own Database From Scratch
42:00
Tony Saro
Рет қаралды 213 М.
Hacking a weird TV censoring device
20:59
Ben Eater
Рет қаралды 3 МЛН
The Rise of Unix. The Seeds of its Fall.
16:51
Asianometry
Рет қаралды 485 М.
A real control system - how to start designing
26:58
Brian Douglas
Рет қаралды 266 М.
Bare-Metal MCU #1 - Intro to registers
13:10
Mitch Davis
Рет қаралды 71 М.
Incredible Dog Rescues Kittens from Bus - Inspiring Story #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 27 МЛН