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.

Recent content by Elyments

  1. E

    Programming failed error when using certain libraries

    Programming failed error when using certain libraries in MikroC PRO Hello all. I am experiencing a very strange problem when attempting to program my PIC18f8722. I am using the MikroC PRO compiler. The problem is that whenever I try to use the 'FloatToStr' function and then program device I...
  2. E

    [SOLVED] Controlling an LCD via a port expander

    Ok so I changed a few parts and tried it out this morning and the code was sucessful! Heres the final code for anyone that is interested: // Port Expander module connections sbit SPExpanderRST at RF6_bit; sbit SPExpanderCS at RA2_bit; sbit SPExpanderRST_Direction at TRISF6_bit; sbit...
  3. E

    [SOLVED] Controlling an LCD via a port expander

    My initialisation routine is as follows: //****************************************************************** // LCD Initialization function //****************************************************************** void LCDInit(void) { LCD_CS_TRIS = 0; LCD_CS = 1; Delay_ms(10); Delay_ms(10)...
  4. E

    [SOLVED] Controlling an LCD via a port expander

    I will give this a shot right now! ---------- Post added at 23:28 ---------- Previous post was at 23:10 ---------- Are the routines InitSPI, InitPortB_SPI and InitPortA_SPI actually required when using mikroC? I'd say the Expander_Init() and SPI1_Init() covers this.
  5. E

    [SOLVED] Controlling an LCD via a port expander

    Wow this is really really useful, many thanks! I'm going to work on editing this to run on mikroC.
  6. E

    [SOLVED] Controlling an LCD via a port expander

    The following code will write to the expanders port B: // Port Expander module connections sbit SPExpanderRST at RF6_bit; sbit SPExpanderCS at RA2_bit; sbit SPExpanderRST_Direction at TRISF6_bit; sbit SPExpanderCS_Direction at TRISA2_bit; // End Port Expander module connections void...
  7. E

    [SOLVED] Controlling an LCD via a port expander

    I'm sure it would help very much thanks!
  8. E

    [SOLVED] Controlling an LCD via a port expander

    The expander has a port A which has the E and RS signals and port B which has the 8 data bits. It's unclear to me which port is being written to in the ASM routine. For the test patterns I simply wrote to port B and checked if the pins on the LCD were the same.
  9. E

    [SOLVED] Controlling an LCD via a port expander

    Thank you for finding all this! Unfortunately I don't really understand the ASM routine, I cannot tell which port of the expander is being written too. I'm pretty out of my depth here...
  10. E

    [SOLVED] Controlling an LCD via a port expander

    I tried this exact thing earlier to verify if the port expander library was working and the LCD pins had the correct pattern on them. So i guess the problem is soley with the SPI_LCD8 library.
  11. E

    [SOLVED] Controlling an LCD via a port expander

    That's very kind of you! Hopefully if the C18 code is simple enough for me to understand I can send the commands the mirkroC way!
  12. E

    [SOLVED] Controlling an LCD via a port expander

    There is a back light on the display but no text. The demo program for the board is written in assembly so I don't know how I can use this in mikroC.
  13. E

    [SOLVED] Controlling an LCD via a port expander

    Tahmid, the display is a LCM-S01602 DTR/m, I cant find anywhere that says whether it is compatible. BigDog, thanks for the idea; I added the delay but still nothing on the screen.
  14. E

    [SOLVED] Controlling an LCD via a port expander

    Hi, I can successfully program the port expander on its own so I think the problem is with the SPI_Lcd8_Config() command. I am wondering if this LCD display is controllable via this library?
  15. E

    [SOLVED] Controlling an LCD via a port expander

    RST is connected to RF6 and CS to RA2 so that part is ok. There is no pot on this demo board to adjust contrast and the configuration bits are set in the code. What do you mean by the necessary changes in the hardware?

Part and Inventory Search

Back
Top