Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problems with MikroC programming in SPI for LCD display

Jay23

Newbie level 5
Newbie level 5
Joined
Oct 14, 2013
Messages
10
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,477
Hi All,
I am trying to port my MikroC code written for 20x2 character lcd to a Newhaven 20x2 lcd display.
My working code was written a 4.bit parallel generic lcd using 4 signals and now I want to port this code to work SPI on a Newhaven display.
I hope someone can help me fix this problem.
I am using PIC16F886@4Mhxz.
 

Attachments

  • NHD-0220D3Z-NSW-BBW-V3(2).pdf
    1.3 MB · Views: 5
  • Spivakten8.txt
    11.9 KB · Views: 6
I don't have MikroC but it looks like all you have to do is replace (or rename) your LCD commands with ones sending the data by SPI. To help further we need to know which pins you have assigned as the SPI data, clock and enable lines. Mikro may already have SPI libraries, if not, it is very simple to toggle the clock line and shift the bits out one by one.

Brian.
 

LaTeX Commands Quick-Menu:

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top