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 ranoguitar

  1. R

    ST7036i and mikroc STUCK

    it does not start at low level, AFTER it goes low, it gets captured by the scope, that is what you see. I will look into level converter, I am sure the 1.3v ahould be 0v. But if 1.3 is low enough logic level, wouldnt it still be interpreted as a zero logic. Also, if the ack is not correct (i.e...
  2. R

    ST7036i and mikroc STUCK

    This is in void main at the start of the lcd initialization. I2C1_Start(); // I2C start signal I2C1_Wr(0x78); // address 0X78 - (lcd address) I2C1_Wr(0x00); // control byte
  3. R

    ST7036i and mikroc STUCK

    they are both high, in the first pic they are shown high, they remain this way. then i switch to single shot and they disappear (pic 2) until triggered. when the sda and scl go low from the start command, the scope begins capturing (pic 3). the signals are seen at the beginning of pic 3 as being...
  4. R

    ST7036i and mikroc STUCK

    the lines are high, scope is set to single shot capture mode. so when the lines go low, it records. i verified this. 1st pic, lines are high at boot up of pic. 2nd pic, turned on single capture mode, lines are still high. 3rd pic, captured I2C lcd initialization bytes, and end with SDA and SCL...
  5. R

    ST7036i and mikroc STUCK

    The scope is setup for single shot capture, when i disable the single shot the two lines are high, when i enable single shot they dissapear. It is set to trigger when the signal goes low. You just dont see them but they are high. 1599619021 I will look into this and verify, just in case and then...
  6. R

    ST7036i and mikroc STUCK

    if im using mikroc i2c library, how am i driving signal high, it is pulled high, the purple signal is the clock, yellow data, it does read the correct binary that is sent for lcd initialization. i didnt get why the 9th pulse is not zero volts though. i did not see a detail in the data sheet to...
  7. R

    ST7036i and mikroc STUCK

    OK...i thank you all for your replies. i bought an oscilloscope (SIGLENT SDS 1102 CML+), low end model. i sceen caputred results of i2c communication. I changed my code and im using mikroc i2c library. It looks like i am getting ack on every byte but i cannot seem to send data, i have tried and...
  8. R

    ST7036i and mikroc STUCK

    I am aware of the i2c library in mikroC, i started with it and couldnt get it to work. I did get some results though, i moved the init_lcd function and pyt the routine in main, not as a function. This gave me 2 full rows of black boxes. Im on to something here. What confuses me is that, why does...
  9. R

    ST7036i and mikroc STUCK

    in an earlier post, i stated that i removed the lcd and got same responses. i was being told i was getting an 'ack', without the lcd.
  10. R

    ST7036i and mikroc STUCK

    i really feel like i should be able to read this, since its a register
  11. R

    ST7036i and mikroc STUCK

    is that like at the begining of the code 3rd line where i define white as an sbit on a port(which is just an led). or line #1 and #2 where if define SDA and SCL. I am under the impression that mikroc allows you to access individual bits of registers. like during the 'void main' there is a lot of...
  12. R

    ST7036i and mikroc STUCK

    Perhaps and probably obviously, i dont understad. In void main() i call init_LCD():, in the function init_LCD(); it loads SSPBUF with data. after sending SSPBUF out the I2C, it runs void ack(); function. as far as pinout, there is a dedicated register for I2C and the ACKSTAT_bit I assumed i...
  13. R

    ST7036i and mikroc STUCK

    I am sorry, that was the wrong code. This is the code #define SDA TRISC.B4 #define SCL TRISC.B3 sbit white at PORTE.B0; sbit red at PORTD.B1; sbit green at PORTD.B2; sbit blue at PORTD.B3; bit oldstate_01; bit oldstate_02; bit speed; bit colors; bit color_temp; char const text1[] =...
  14. R

    ST7036i and mikroc STUCK

    In the schematic, i use an PIC18f4550. I real life i use PIC18f4523. This is simply for a lack of symbol and footprint in eagle. New Haven LCD Datasheet: https://www.mouser.com/datasheet/2/291/NHD-C0220BiZ-FSRGB-FBW-3VM-28341.pdf PIC18f4523 Datasheet...
  15. R

    ST7036i and mikroc STUCK

    This is my first time asking for help on a forum. why would i want someone to write it for me? that should be obvious, i opened with a question. i will post stuff tomorrow. i guess i wanted to know someone is interested before i got posting. so tomorrow after work, i will post details, code...

Part and Inventory Search

Back
Top