Author Topic: PIC -> or gate -> LCD ?  (Read 3270 times)

0 Members and 1 Guest are viewing this topic.

Offline SilverHawkTopic starter

  • Contributor
  • Posts: 17
  • Country: my
PIC -> or gate -> LCD ?
« on: March 19, 2016, 02:32:42 pm »
Im having trouble understanding why are the (or gates) necessary ?, does it have to do with delay ?

Ive uploaded the datasheet for the ic , lcd , the pic im using is PIC18F46K20
« Last Edit: March 21, 2016, 02:58:18 am by SilverHawk »
 

Offline ade

  • Supporter
  • ****
  • Posts: 231
  • Country: ca
Re: PIC -> or gate -> LCD
« Reply #1 on: March 19, 2016, 02:57:45 pm »
They're using it for level shifting maybe?  The PIC is at 5V and the LCD is at 3.3V.  That OR gate chip might be a 3.3V device that's 5V tolerant.
 

Offline SilverHawkTopic starter

  • Contributor
  • Posts: 17
  • Country: my
Re: PIC -> or gate -> LCD
« Reply #2 on: March 19, 2016, 03:00:39 pm »
can you elaborate a little bit about level shifting , im a beginner and  i have no idea what that is.
 

Offline SL4P

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
  • There's more value if you figure it out yourself!
Re: PIC -> or gate -> LCD
« Reply #3 on: March 19, 2016, 09:08:58 pm »
... have no idea what that is.
A *really* badly drawn schematic!
Don't ask a question if you aren't willing to listen to the answer.
 

Online mariush

  • Super Contributor
  • ***
  • Posts: 5017
  • Country: ro
  • .
Re: PIC -> or gate -> LCD ?
« Reply #4 on: March 19, 2016, 09:29:06 pm »
If you have a microcontroller powered from 5v and you send a digital 1 on a pin, at the end of that pin you'll get 5v.
Problem is you may want to connect a device like a LCD display as shown in the picture which was designed to run on a lower voltage and will probably be damaged by 5v.

You work around that by introducing something between the microcontroller and the lcd display, a simple component that's powered from the lower voltage but  which has an input that can handle up the higher voltage on the input but outputs only as much as the chip's input voltage.

The other way is also possible, to shift from a lower voltage to a higher voltage, see for example http://electronics.stackexchange.com/questions/81580/step-up-3-3v-to-5v-for-digital-i-o for a detailed post with examples.
 

Offline KL27x

  • Super Contributor
  • ***
  • Posts: 4099
  • Country: us
Re: PIC -> or gate -> LCD ?
« Reply #5 on: March 20, 2016, 12:06:44 am »
Quote
Im having trouble understanding why are the (or gates) necessary ?,
I am, also.

Badly drawn schematic aside...

I know of no reprogrammable PIC that cannot run down to at least 2.0V.
I know of no HD33780 LCD that cannot run on 5V.

Even if I needed to run the PIC on 5V and LCD on 0V, I would just put a 4.7K-10K resistor between each PIC output pin and LCD input pin. No pulldowns. No OR gate IC.

Maybe he needed a buffer to get the refresh rate from 60 Hz to 62 Hz.
« Last Edit: March 20, 2016, 12:09:11 am by KL27x »
 

Offline SilverHawkTopic starter

  • Contributor
  • Posts: 17
  • Country: my
Re: PIC -> or gate -> LCD ?
« Reply #6 on: March 20, 2016, 12:41:56 am »
sorry about the schematic guys, i didnt draw it though , part of school project
 

Online Zero999

  • Super Contributor
  • ***
  • Posts: 19492
  • Country: gb
  • 0999
Re: PIC -> or gate -> LCD ?
« Reply #7 on: March 20, 2016, 11:05:20 am »
It doesn't give enough information, such as part numbers, especially for the gates.
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline SilverHawkTopic starter

  • Contributor
  • Posts: 17
  • Country: my
Re: PIC -> or gate -> LCD ?
« Reply #9 on: March 21, 2016, 03:17:16 am »
Thank you all for your answers

Ive uploaded the lcd and ic datasheet if you guys are curious
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf