8452 I2C clock stretching

Hello

We seek to emulate an I2C sensor that is clock stretching while doing his measure. NOR-USB-8452 clock streching in slave mode support?

Thank you

Hi Horsfall,

Our 845 x manual says that "the I2C specification provides a mechanism to allow the slave slow down the movement of the bus when it is not ready."  This mechanism is known as clock stretching. "In addition, he says that the behavior is different if the device is high speed mode. The USB-8452 is built according to this specification. Therefore, we can conclude that he clock stretch when necessary.

There is an example of the NOR-8452 making the clock that extends into the following forum post: http://forums.ni.com/t5/Instrument-Control-GPIB-Serial/Use-NI-8452-be-a-Slave-device-in-SMBUS-NI-845...

Please note that the USB-8452 supports the following (as defined in the I2C 4.0 specifications):

1 standard mode

2 fast mode

3. fast mode more

4. high speed mode

I've referenced the manual can be found at the following URL: http://www.ni.com/pdf/manuals/371746e.pdf

Kind regards

Kyle S.
Technical sales engineer
National Instruments
http://www.NI.com/support

Tags: NI Products

Similar Questions

  • How to use the I2C clock as 1 MHz clock source?

    I use USB-8452 and try to find the source of the clock that allows to generate 1 MHz.

    Hi JimSi,

    You try to make it to the USB-8452 generate a constant 1 MHz signal?  If so, I don't think that you will be able to do it, sorry.

    Best,

  • Ground connector OEM USB-8452

    Anyone know what the height of the connector for the USB-8452-I2C/SPI module interface connector? I need specificially the OEM module connector plug, but I think that the standard version is just the OEM version that is housed in a case if the connectors are identical. This is the standard height of 1.27 mm IDE? 2.54 mm? I don't currently have one of these modules, but I intend to use it as a daughter card on a new design under development test Board and I am trying to find a connector corresponding Commission of the test I can run a cable Ribbon IDC to coming from the USB-8452.

    Here is an article from National Instruments KnowledgeBase that processes the options and the cable and the connector for the 8452. Connector and cable specifications for USB-8451 OEM and USB-8452

    See Chapter 3 and Appendix A of the NOR-845 x Hardware and software manual for more information.

  • clock in the notifications box no longer displays the date beneith the time

    Series HP Pavilion HPE h8 - 1360t running Win 7

    When I ran Setup and decided that I needed to install the software, I notice that the date is now displayed in the tray under the era.  I was happy that I is no longer my clock application to display the date.

    Now that I've installed all the updates and my usual software, the clock in the notification area displays only the time.  The date seems to have disappeared.

    I don't know what I've done or installed to make it disappear.  I can't find a way to recover.

    Is there a software switch somewhere that turns on the display of the date of the clock?

    Normally, the 'taskbar' are a height of 'one'... the time is displayed. If you unlocked the "taskbar" and stretch up to a height of 'two'... the time, day and date will be displayed. Thereafter, be sure to lock the taskbar to prevent change.

    Please send Bravo

  • NEITHER USB-8452 - reach the maximum write SPI speed

    Hello

    I have a USB-8452 with the latest version of the software installed (2.1.2). The host computer is a Core i7. I am trying to achieve the maximum SPI write speed with the camera possible. I tried the basic block read/write SPI, SPI Scripting blocks and SPINNAKER streaming, but the first two have large delays between CS falling and the data being written (with so that delays in loop), and the last seems to be useful only for read operations.

    Can someone tell me if there is a way of a) reduce the time of installation for basic SPI / SPI Scripting or b) writing different values in a single stream of SPI? Thanks in advance for any help on this issue, even if it's just confirmation that yes they is hard limits that cannot be overcome with the LabVIEW 8452 interface at this time.

    Here's the best I can do right now, as shown in my logic analyzer. Change of the SPI clock speed does not affect installation time and delays that are primary and secondary bottlenecks:

    SPI read/write database-

    Program: Basic Configuration followed by read/write of SPI block itself in a while loop

    Main bottleneck: ~ 450 delay us into iterations of the loop (see Figure 2)

    Secondary bottleneck: ~ 6 us delay between falling edge of CS and the first synchronization signal (see Figure 1)

    Capture 1 - delay highlighting between CS falling and first SCLK pulse

    2 delay highlighting between all iterations of the loop of capture

     

     

    Scripts of SPI-


    Program: Followed two Script blocks Basic Configuration run in a while loop (to check the two block to block and delay loop iteration)


    Main bottleneck: ~ 450 delay us into iterations of the loop (see Figure 3, space between the second and third images captured)

    Secondary bottleneck: ~ 250 us delay between blocks of Script run consecutive (see Figure 3, space between the first and second captured images)

    Capture 3 - highlighting delays consecutive run the Script and delays between while the loop iteration


    SPI in Streaming- It's the closest to achieve a fast writing speed, but unfortunately, it seems to be only useful for read operations (e.g., ADC), do not write.

    Program: Configuration of the base stream followed by start of the flow block

    Main bottleneck: impossible to write something else than the data value unique property "wave 1-> MOSI data." I can write a byte array to this property, but it will simply put all these bytes in an image and repeat this framework (see Figure 4) rather than go through each value.

     

    4 - two bytes sent repeatedly using SPI capture stream. Delay of CS is finally good, but no possibility to change the MOSI image to image data.

    Hi JBender1,

    This show looks like what we would expect for a 8452.

    If you need higher performance, I encourage you to watch using a card R or FlexRIO FPGA series for your implementation.

  • USB8452 - how to set a clock of 20 MHz SPI Stream mode?

    Hi all
    I can't really manage set a clock of 20 MHz SPI Stream mode.

    To set how often I use this property node (see image)
    [for example to set a 1 MHz clock, I put:]

    1. Wave1.TMNG.SclkLow = 50 (500ns)
    2. Wave1.TMNG.SclkHigh = 50 (500ns)]

    And everything works fine.

    When I try to put a clock of 20 MHz instead, I put:

    1. Wave1.TMNG.SclkLow = 2.5 (25ns)
    2. Wave1.TMNG.SclkHigh = 2.5 (25ns)

    But, unfortunately, I receive a 25 MHz clock.
    I know the USB 8452 can generate a 20 MHz signal, so I think I'm doing something wrong, but honestly, I don't know what to do.
    I see that the entry for Wave1.Tmng.SclkLow/High is a U32, then perhaps it truncates my 2.5 to 2 (i.e. a 25 MHz clock), but given that the USB8452 can generate a 20 MHz signal I honestly don't see the point of this.

    Thanks for the advice/help,
    Federico

    Hi Federico,.

    as you can see in the image below, the number that you set is the number of clock cycle of BASIC that make SPI clock.

    Base clock is 100 MHz, then the single 10ns resolution. You have to choose between 20 and 30ns or try to have 20ns high clock and 30ns low clock.

    Teo.

  • NOR-8452 used as slave

    Hey,.

    is it possible to use NOR-8452 two being as master and slave?

    Thank you

    Dear Grega!

    You are right, function slave SPI is not supported on the 8452, because he will always provide clock and chip select signals as outputs. There are a few things we can do to solve this, depending on your resources and demand.

    a. use the FPGA as a slave module, because that is supported. If you test the master behavior, however, it is not applicable.

    b. oversample the FPGA output. You will use two devices such as masters so that they will not be synchronized, but the SPINNAKER needs no acknowledgment of the slave to the data transfer always works this way. Data redundant, created in this case (since USB has to run to not miss anything, so some data will be measured twice) should be somehow removed programmatically.

    c. use any DIO module that supports the edge to act as a slave device detection.

    If I understand, as we will collect data to measure the FPGA, two-way communication is not necessary, just read what the master module written on the bus. If it's not true (you want the slave to react in response on the bus), so only a good slave SPI (FPGA another perhaps) is suitable.

    Kind regards:

    Andrew Valko

    NEITHER

  • NEITHER USB-8452 Master Mode

    Hello

    I'm new to USB-8452 for SPI. I want 8452 to "master" mode. There are basic SPI API and SPI API. So, what is the mode by default if I use the basic API.

    Best regards

    Bonnie

    The NI USB - 845 x only supports the SPI master mode. The API Base, advanced and streaming are all masters.

    For I2C, we have a slave API (but the basic API and advanced are also master mode)

  • I2C implementation using NOR-6008

    Hello world

    I have a NOR-6008 low cost multifunction data acquisition.

    Can I use this with shifter voltage level to apply the I2C Protocol...

    You must use the approach of bit - strike (i.e., change you the clock and data lines yourself) and it would be timed by the software. But yes, you could do.

    Your next question will be: are there examples? There are many examples on the conduct of IO digital who settle with DAQmx. Regarding the implementation of I2C, the spec is available. http://en.Wikipedia.org/wiki/I%C2%B2C

  • myRIO i2c problem

    Hi I have just started using the myRIO. I use the I2C to connect a remote device (motor controller). I figured out how to send data (speed), but Im having problems reading certain values with the I2C of myRIO function. I want to read the register to 0 x 11 to my device. How can I specify what registry I want to read? Thank you.

    RokCapuder wrote:

    Thanks for the quick reply HappyAsthma!

    This is the VI I'm singing and his does not work in the current state. Should I wait for a period of time between writing and reading?

    N ° you shouldn't need to wait (the exception being if you were manually manipulate the clock).  By specifying, you send a little of each clock cycle.

    And I can't open the screw specifically because I don't have the library/drivers installed, but try to use the VI read write to make your bed instead of do it manually then 1 reading and writing 1:

    http://zone.NI.com/reference/en-XX/help/373925A-01/myrioreference/myrioref_i2cwriteread/

    You can send the address of the slave, bytes to write is 0x11, bytes = number of bytes you want to read (your device needed to be put in a registry to make incremental "burst reads" a special value)

    EDIT:

    I guess (without seeing the code VI) is that the VI and VI read write send the STOP bit automatically once they are do all the bytes read/write.  VI read write is probably configured for write Byte (s), and then immediately read some byte (s) before sending the STOP bit.

  • Implementation of I2C in FPGA on SOM devkit

    Dear all,

    I have this sbRIO 9651 SOM with jury of carrier of reference with which I would like to connect a sensor of MPU 6050 Pmod 5 and acquire sensor data in an FPGA VI and process data in a RT VI. I find it difficult to implement I2C interfacing to FPGA as I am relatively new to FPGA programming in LabVIEW. MyRIO implementation was pretty easy as the API and usage example it was easy to access. Any help would be appreciated.

    Concerning

    Guenoun

    Hello

    I found this documentation to be very helpful:

    https://decibel.NI.com/content/docs/doc-41410

    She described the meaning of in, out and activate. SCL clock series, SDA is given in series. In and out are to read and write data, activate switches between being an input or output pin. It is what explains the wiring in this post on the forum: https://decibel.ni.com/content/message/127591#127591

    The I2C bus is high when idle, so out is set to false (bass), but this has no effect because enable is false. In order to drive the bus low, enable is set to true. Now has an effect and driving the bus low. If the bottom of the bus is set to true to activate while the output is held low literacy.

    I hope this helps you.

    Alex

  • [ERROR] ISO [DAAPI] =-1: [I2C] could not open the file bus/dev/i2c-1

    I run the lesson 2 TemperatureSensor project

    I can detect the BMP180

    PI@raspberrypi ~/javame81ea/bin $ sudo i2cdetect y 1

    0 1 2 3 4 5 6 7 8 9 a b c d e f

    00:          -- -- -- -- -- -- -- -- -- -- -- -- --

    10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    30: -- -- -- -- -- -- -- -- -- -- -- UU -- -- -- --

    40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

    70: -- -- -- -- -- -- -- 77

    I can retrieve the info from I2CDeviceConfig


    Name of the controller: null

    Controller number: 1

    Address: 0 x 77

    Size: 7

    Clock frequency: 3400000

    My API permissions are

    jdk.dio.DeviceMgmtPermission "*: *" 'open '.

    JDK. DIO.i2cbus.I2CPermission "*: *".

    But when I try

    myDevice = DeviceManager.open (config);

    I get

    [ERROR] ISO [DAAPI] =-1: [I2C] could not open the file bus/dev/i2c-1

    Any suggestions?

    Ah.

    You run usertest.sh as root?

    sudo./usertest.sh

    Needs me root access to the devices.

    Tom

  • format of the clock after upgrading to IOS 10

    After the upgrade to IOS 10.0.2on my iphone 6 s the clock passed using two points using a format point.

    Language and region are still like before upgrade: Norway.

    I tried to change in various other regions which, to my knowledge, uses the same format of the clock, but there is still a point. Is there another way to change this?

    Hi, ferdinanden!

    Thank you for reaching out by Apple Support communities. From your post, I understand that your clock is not displayed as expected in the iOS 10. Rather than see a colon, showing time as 07:32, you see just one point, displaying the time as 7.32. I would be happy to offer help!

    There could be a few different things going on to cause this, and change your region has been a great first step to understand that and fixing it. Given that this did not help, try the following steps. Before you start, use this article to create a backup of your iPhone: How to back up your iPad, iPhone or iPod touch

    1. Replace it with another under settings > general > language and region. See if that allows you to adjust the way in which the clock is displayed. If so, revert to the language of your choice and see if she spends exactly the point again.
    2. Make sure that the value is automatically enabled under settings > general Date & time
    3. Restart your iPhone by following the steps here: restart your iPad, iPhone or iPod touch
    4. Reset your iPhone settings in settings > general > reset > reset all settings. This will not delete your personal data (such as your photos/videos, contacts, calendar of events, etc.) but it can reset it customizable settings (as the wallpaper / brightness, alert sounds/ringtones, the Date and time settings, etc.) to their default values. It will also remove saved passwords and Wi - Fi networks and all previously used settings APN or VPN.

    Have a great day!

  • The menu bar clock freezes after recovery from sleep mode

    After the upgrade to Sierra, I noticed that the clock in the menu bar (top right) show wrong time.  This occurs when the iMac comes out of his SLEEP.  When I hoover the pointer of the mouse on the clock, it would turn into a spinning ball (i.e. no response).  I have to disconnect and reconnect so that the clock in the menu bar to indicate the correct time.  She would continue to work until the next time that the iMac comes out of SLEEP.

    Anyone facing this problem?

    Have you tried booting in safe mode (hold down the SHIFT key at startup)? The problem persists?

    If you create a new user account, does?

  • What happened to the clock app in the iPad?

    I used to use the clock application in my iPad while you sleep as a kind of a large wall clock.

    I just had open the app, tap on the clock I need, and he immediately enlarged its display and occupy the entire screen.

    After that 10 updated iOS, the clock app is different in this regard and I can't enlarge the clock by all means.

    Is it just me or the clock app came from changes (other than the bed/alarm thingy)?

    Hope to have it back to know the time so only on my bed

    Hello

    Go to app store download world clock.

    See you soon

    Brian

Maybe you are looking for

  • HP Envy 110: HP Envy 110 "full feature software and drivers" - must use the USB cable?

    On another thread, it was recommended that use "full feature software and drivers" to solve a problem I had with a scan on my HP Envy 110.  This network printer using a WiFi connection. In order to take advanatage of the features in this S/W, I must

  • Windows XP administrator account disabled

    My XP Pro windows local administrator account is disabled and the password is changed every time that I reboot. Work around currently I am using is connecting to another admin account on the same machine and activate the real administrator account an

  • Deleted emails accidentally from Windows Live Mail during the closing of e-mail account

    I deleted Windows Live mail email account to stop downloading of emails that I intend to use Outlook in the future, expecting that I would be able to see my old emails in Windows Live Mail. Before I could stop, he dleted all. I searched and found as

  • FilePicker on attachedObjects does not work?

    This is the simple app I'm working on that I want after a click in the action Go, a FilePicker bar will be shown, so I put the FilePicker on attachedObjects like this: // main.qml import bb.cascades 1.0 NavigationPane { id: navigationPane backButtons

  • The keyboard does not work in the storm

    Hello guys! The scene is, I have very an app in 4.2 and I want my application to be run in each BB devices. It works very well in all devices except storm. When I deploy the application into the storm, compatibility mode is TRUE by default, and in th