Gyro L3G4200D Code Request


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: Gyro L3G4200D Code Request

    Louie,

    Please pardon me for my ignorance. But I am not seeing the condition in the code fragment "WHILE SSPSTAT.2: WEND". Do I read this as "wait until bit 2 of the SSPSTAT register is not set"?

    Thank you for your help. I just can't find the answer in the PBP3 manual or of course the data sheet.

    F

  2. #2
    Join Date
    Nov 2007
    Location
    West Covina, CA
    Posts
    219


    Did you find this post helpful? Yes | No

    Default Re: Gyro L3G4200D Code Request

    Yes, that's exactly what that means.
    This bit is high while "Transmit in progress", which is a very short time.
    Look in your PIC datasheet under MSSP Module and I2C Mode then SSPSTAT under Registers.

    Which PIC are you using?
    Are you getting an ACK from the gyro?
    Louie

Similar Threads

  1. am I being rude to ask this. . .ASM code request
    By camcompco in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 11th March 2013, 12:54
  2. 16F877A and Gyro algorithm question
    By Macgman2000 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd February 2012, 23:21
  3. A Defines Request
    By Kirk Fraser in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 31st March 2011, 23:23
  4. How to tell there is a serial request
    By cncmachineguy in forum Serial
    Replies: 4
    Last Post: - 21st November 2010, 22:14
  5. Code request....18f2550 usb/serial
    By f_lez in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 1st November 2009, 14:26

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts