I am a professional in Schematic and PCB designing by using Altium.
I am a Professional in
I am selling my services to develop your projects.
Contact me by Email:
elektrogarage18@gmail.com
In
digital we define some conditions of anything in two states that are 0 and 1
for example switch conditions possibly open and close so in digital it will be 0 and 1 respectively Same as
down up, left-right, off ON and false true, etc.
NOT Gate
performs the function to invert the logic. If the input is 0 then the output will be 1
and if the input is 1 then the output will be 0.
by using the switching mode of the transistor to understand the
working of RTL NOT gate.
working
of RTL NOT gate.
Input 0: Q1 will
be in off condition and current flow toward output through R1 means output 1.
Input 1: Q1 will be ON and current flow through Q1 and R1 and ground. Max voltage drop across R1. (VCE = VCC – ICRC) and the output will be 0.
CMOS
is Complementary to MOS which means in this logic NMOS and PMOS twice are used. CMOS
basic circuit is NOT gate.
If input
A=0:
When input A=0 then PMOS will be ON and NMOS will be OFF and the current flows through output so output logic = 1.
If input
A=1:
When input A = 1 then PMOS will be OFF and NMOS will be off Now current flow through PMOS and output so the output is 0.
When the Tank is at 0% (empty) the Motor will start using NAND Logic and stop when the tank will touch 100% (Full).
The motor is not only dependent on the NAND gate because if the level drops from 100% then again motor will start but we want to ON the motor again at 0%. So we apply NAND output at the input of D Flip Flop. Now the rising edge is required to pass the logic.
So here we are sharing the scrolling text on dot matrix. MikroC Pro for PIC is use for coding and compilation and Proteus 8.15 is use for simulation for circuit testing.
Here we are using common cathode dot matrix, it means the Anodes of
the LEDs are common with columns and cathode with rows as you can see in above
1st diagram.
If we want to ON top left dot, then we will do column 1 high and row 1
low. Here if we will scan columns and row 1 low all others row at high then top
row of the matrix will glow one by one from left to right. Wise versa if we
scan rows and select to high one column then selected column dots glow one by
one.
Interesting this is that if we increase the scanning speed and cross the human
eye flickering sensitivity then we see a line of row or column.
/// Dot Matrix 5x7 using PIC /// /// by Elektronics Garage /// /// Date: 4 Nov 2023 /// //Dot_Matrix size unsigned int columns = 10; unsigned int rows = 7; unsigned int loop=0; unsigned int col=0; unsigned int row=0; int int i,j; unsigned int col_num[] = {0x01,0x02,0x04,0x08,0x10,0x01, 0x02, 0x04, 0x08, 0x10}; unsigned int row_A[] = {0x01, 0x76, 0x76, 0x76,0x01,0xFF,0xFF,0xFF,0xFF,0xFF}; unsigned int row_B[] = {0x00, 0x36, 0x36, 0x36,0x49,0xFF,0xFF,0xFF,0xFF,0xFF}; void main() { TRISB=0x00; TRISD=0x00; PORTB=0x00; PORTD=0x00; col=columns-1; while(1) { for (j=0;j<300 delay_us="" else="" for="" i="" if="" j="" loop="" portb="col_num[col-i];" portd="row_A[row];" row="loop;">col-1){loop=0;} } } 300>