Receiver with built-in ARM I2C of incorrect data
Hello together
For a school project, I have to finish up next week, I need to read a RealTimeClock DS1307 via I2C.
I use a LM3S8962.
I tried to communicate via the NI USB-8451 module, which works great.
Now, I just read the data from the DS1307 and I used the built-in ARM I2C live. I get data, but the data is not correct (for example, it displays a value of 70 in the second register, which is not possible).
I tried a lot of things, but I couldn't make it work properly.
Attached a screenshot of how I implemented the reading of the I2C. What I am doing wrong? I really need to get this work otherwise I can't finish my project and this unfortunately causes a bad brand I hope that someone can help me.
Greetings from Switzerland
Dominic
Hi doh.
are you sure you read from the registry of law?
According to this datasheet: DS1307.pdf .
If you want to access the registry seconds we address 0 (Hex-value-0), in your screen shot his 68 decimal. You can change the representation of your constant which is connected to the terminal of the address of your create the Configuration VI reference. Just right click your constant-> visible object-> Radix. After this, you can change its representation to x (HEX).
In addition, when you read the 7 bits that are casted to unsigned 8 bit you have to notice that the 7 bits are coded as the BCD code.
So consider your example of reading the value in binary way 70: 70: 100110 with ILO the most significant on the left and the least significant bit on the right side. Now when divide you the values according to the seconds in the table of technical data sheets:
| 0 | 1 0 0 | 0 1 1 0
Then you will see, 70 as U8 has value: 0110 = 6 (last 4 bits) and 100 (average 3 bits) = 4, which means that your real value is not 70, but 46.
So I would say, you must convert the value of U8 to an array of Boolean, divide the bits according to the table mentioned in the manual and then convert them timely.
Hope this helps, if you have any other questions just after.
Kind regards
Lam
Tags: NI Software
Similar Questions
-
Reset the emails received with more late on top
How to reset the emails received with more late on top
You can go to > > kind of > > and you can select more, or in the header date of click once to reverse the order
-
I installed the Channel Four app on my iPad and I was never able to use it. I tried to remove and re-install, but to no avail. Any notice received with gratitude. Thank you!
Have you downloaded the correct version for iPads.
https://iTunes.Apple.com/GB/app/4oD/id432494037?Mt=8
Click on view in iTunes and download it from there.
-
How do I know if my system came with built in wifi
I've never used wifi on my desktop computer. I was told that the new HP desktop computers came with built-in wifi and if it was in airplane mode, it wouldn't work. I tried to find this setting but to locate the search on my system. How can I find out this information to see if mine has built-in wifi.
Hello
The following link shows the specifications of your machine:
http://support.HP.com/us-en/document/c03520552
There is NOT a wireless. I didn't have ANY housing PCI or PCIe spare for a PCIe wireless card so an option that you can try to use something like the following:
http://www.OfficeWorks.com.au/retail/products/technology/Networking/Wireless-USB-adapters
Kind regards.
-
How to record video clips of full 720 p with built in webcam?
How can I save lot of 720 p clips with a built in webcam and built-in software? I see that photo booth does, but it uses a weird square resolution. I want normal 720 p for youtube or other? Is this possible with built in software? If so, how? If not, are there free programs that will do the trick? Thank you.
The answer is here if anyone needs it:
-
Calibration frequency Offset transmitter and receiver with USRP® material
Hello everyone, I read the scripts provided by The Mathworks on the frequency of calibration offset transmitter and receiver with USRP.
The USRP® transmitter sends a sinusoidal signal at 100 Hz with the MATLAB, sdruFrequencyCalibrationTransmitter.mscript, the USRP® receiver. The USRP® receiver monitors the signals, calculates the transceiver frequency shift and displays in the command window MATLAB for calibration with the MATLAB script, sdruFrequencyCalibrationReceiver.m. At the level of the receiver, frequency offset will be calculated and displayed in the command window. The program uses a Spectrum Analyzer to show the spectrum of the received signal. In the program, the corresponding sentense is '% display frequency spectrum. step (hSpectrumAnalyzer, rxSig); "Based on that, I thought that the spectrum analyzer would show the spectrum of the received signal. However, the Web site corresponding site shows "to compensate for a shift in frequency of transmitter/receiver, add frequency offset on the Central frequency of the receiver object SDRu system. Be sure to use the sign of the offset of your addition. Once you have done this, the spectrum displayed by the Analyzer of spectrum of the receiver system object must have its maximum amplitude at about 0 Hz." What I'm confused is, why the Spectrum Analyzer should have its maximum amplitude at about 0 Hz, not other values? Is it because of the characteristics of the USRP itself or the Analyzer of spectrum shows is the value of the difference between the Tx and the Rx after calibration? I use neither-USRP 2920. Your response will be much appreciated! Thank you!
The matlab mfile is found in the following links:
Yes if two devices are not locked to a reference clock, 10 MHz for the USRPs you will see a shift in frequency.
Specifications in ppm, ppb can give you how it can be:
http://digital.NI.com/public.nsf/allkb/2A0B9D3F365DEDEF86256BDB007354EDBye!
-
Can I use the Wireless Comfort Desktop 5000 keyboard and receiver with a Mobile 4000 mouse?
Hi, as the title says: can I use the Wireless Comfort Desktop 5000 keyboard and receiver with a Mobile 4000 mouse? I have the kit, but the mouse is to bulky for me and I would use a mouse Microsoft Mobile 4000 but with the same receiver as the keyboard of the kit, is it possible? Thank you
Hello
looks at it's not going to work. Wireless products are programmed to be used with a specific key, so they won't work on another dongle.
B Eddie
-
Original title: computer always slow and freezing after clean install
It is a compaq 2007 desktop running windows vista premium, I work on it for a friend, they said he was running slow and freezing up all the time so I just went ahead and did a system restore complete with built-in recovery partition on the hard drive, the recovery went well but still have the same problems with the computer being slow and freezing up. any help would be appreciated thanks.
Hello
Step 1: I suggest you try the steps in the Sub articles to solve the problem of vista performance.
http://Windows.Microsoft.com/en-us/Windows-Vista/optimize-Windows-Vista-for-better-performance
http://Windows.Microsoft.com/en-us/Windows-Vista/get-computer-speed-and-performance-information
http://Windows.Microsoft.com/en-us/Windows-Vista/get-maximum-performance-from-Windows-Vista-from-Windows-Vista-inside-outStep 2: You can also check if the problem persists in the clean boot state.
Put your boot system helps determine if third-party applications or startup items are causing the problem.Try the steps in step 1 in the article to put your computer in clean boot mode.
http://support.Microsoft.com/kb/929135Thanks and greetings
Umesh P - Microsoft technical support.Visit our Microsoft answers feedback Forum and let us know what you think.
[If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.] -
His monitor with built-in speakers
Hello
I have an Optiquest Q7 monitor with built-in speakers. I used to get a sound from the built-in speakers with my XP computer. I recently upgraded to a computer with Vista 64 bit. However, I no longer get sound through the built-in speakers. I tried to sound in the control panel and disabled the exclusive mode in the Advanced Options tab. Any thoughts on what may be the problem?
Thanks in advance,
EcoHi EaswarS,
Welcome to the Microsoft Answers site!
First check if the internal PC speaker has by default.
1. click on Start, type Sound in the search field and select Sound from the list when it becomes available
2. check that the device audio speakers is set as the default device and is activated
NOTE: If the audio peripheral speakers isn't in the list, right-click anywhere on the playback of the Audio window tab, then select options Show disconnected devices and Show disabled devices .
3. If the sound from speakers option is disabled, right click on speakersand then select Activate .
The sound should now be restored. If the device audio speakers still does not work properly, check if the audio device is enabled in the Device Manager.
Step 2: Check if the audio device is enabled in the Device Manager
If there is no sound from the speakers, follow the steps below to determine the State of the sound hardware in Device Manager.
1. click on Start, type device in the search box, and then select Device Manager from the list.
2. click on audio, video and game controllers to expand the list of audio devices installed on the computer.
4. determine if the audio device in question is enabled or disabled.
· If an arrow appears on the volume icon, the audio device is disabled. Go to the audio driver update.
· If a down arrow is not displayed on the volume icon, the audio device is turned on. Go to verify that the audio device is enabled in the Device Manager.
5. right click on the name of the audio device and then click Activate. If the problem persists, then follow step 6.
6. right click on the device name, select Propertiesand then displays the message in the device status field. The device status field contains either:
A message that contains most troubleshooting for your specific device information.
Or
A message indicating that the device is functioning properly.
Step 3: Install an updated audio driver
1. click on Start, type device in the search box, and then select Device Manager from the list.
2. click on sound, video and game in the Device Manager window controllers.
3. right click on the name of the audio device listed under sound, video and game controllersand then click Update driver software.
You can also visit the manufacturer's Web site and download the latest 64 bit Vista compatible drivers.
For more information, please visit the following links:
http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-fixing-common-sound-problems
http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctlyHope this information is useful.
Jeremy K
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
I have hp laptop with built in webcam I went to Device Manager and it not on a day it is next day it not
Hello
· What is the brand and model of your laptop?
Method 1:
Try running the fixit from the link next and if it helps: http://support.microsoft.com/mats/hardware_device_problems/en-us
Method 2:
Try to update the drivers for your webcam and check if it helps: http://windows.microsoft.com/en-us/windows-vista/Update-a-driver-for-hardware-that-isn ' t-work properly
-
I have an asus laptop with built-in bluetooth. I hit the bluetooth button at the top near the power button, nothing happens and when I go to bluetooth menu manually, click bluetooth settings NOTHING product! All I want to do is sync my headset with my laptop! I did all the bases to find out the headphones, but my computer can't locate!
Hello
Hardware devices not detected or does not work - a Mr Fixit
http://support.Microsoft.com/GP/hardware_device_problemsThe problems with Bluetooth devices
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-Bluetooth-enabled-devicesSet up a Bluetooth compatible device
http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-Bluetooth-enabled-deviceThe problems with Bluetooth devices
http://207.46.197.98/Windows/en-in/help/11a74104-645D-40D4-b933-bde5d15537bb1033.mspxHow to set up a Bluetooth connection
http://www.vista4beginners.com/how-to-setup-a-Bluetooth-connectionThe Bluetooth item in Control Panel on a Windows Vista SP2 computer does not work as expected
When you click the item
http://support.Microsoft.com/kb/960531/en-usIf you need drivers try the support site for the manufacturer of your system and/or the site of the manufacturer of the real device.
BluetoothView is a small utility that runs in the background and monitor the activity of Bluetooth technology
devices around you. For each detected Bluetooth device, it displays the following information:
The device name, address Bluetooth, Major Device Type, minor device Type, first detection time,
Last detection time and more. BluetoothView can also warn when a new Bluetooth device
is detected, by displaying a balloon in your bar tasks or playing a little beep. -FREE http://www.nirsoft.net/utils/bluetooth_viewer.htmlBluetoothCL is a small console application that transforms all differential of bluetooth devices detected in
the standard output. For each Bluetooth device, the following information is displayed: MAC
Address, name, Major Device Type, minor device Type and possibly the name of the company of
the device (if the external file of MAC addresses - oui.txt is provided) - FREE
http://www.NirSoft.NET/utils/bluetoothcl.htmlI hope this helps.
Rob - bicycle - Mark Twain said it is good. -
After you have reinstalled my Window 7 Professional is not activate with the product key, I received with my package & which I used for a long time. I tried to activate using automated phone system, but could not do. What is the solution. I know that this product key I used only on my current desktop & in past I had not faced any problem on reappattage. This time, I had deleted all the parks & reformatted all readers of my Win7 teacher reappattage. This can be a cause of failure of activation?
Direct activation number: (888) 725-1047
1-800-936-5700
-
Lost the ability to compress or decompress files with built in Win 7 zip functionality.
Original title: integrated Zip/Unzip
I lost the ability to compress or decompress files with built in Win 7 zip functionality.
Can I get it back and how?
If a right click | Send to | Zipped (compressed) file is missing, see this.How to remove and restore the value default Windows 7 send to Menu items
http://www.SevenForums.com/tutorials/45421-send-context-menu-remove-restore-default-items.html
Customize the Windows 7 or Vista send to Menu
http://www.howtogeek.com/HOWTO/Windows-Vista/customize-the-Windows-Vista-send-to-menu/
If 'Extract all' is missing, see this.Windows 7: restore "extract all" to the context menu of Windows 7 -
Download but not upload slow Wi - Fi on desktop PC with built-in 802.11n Wireless LAN Card Ralink.
I use a desktop computer HP Elite with Windows 7.Hello
· If it works much earlier?
· Did you make any changes before the show?
Method 1: Follow the instructions in the link and check if this can help to determine the coefficient of slow internet:
http://Windows.Microsoft.com/en-us/Windows7/why-is-my-Internet-connection-so-slow
Method 2: I suggest that you update the wireless network card driver and check if that helps:
http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly
Visit the link below which deals with the same issue and check if that helps.
http://h30434.www3.HP.com/T5/TouchSmart-PC/RALink-802-11n-wireless-LAN-card/TD-p/32290
You can also contact the manufacturer for assistance:
-
FirePOWER 8130 come with built-in ports and is need of a Management Center?
Hello
I'm looking for information for a 8130 HA pair.
They come with built-in ports or the ports must be ordered in the form of Modules of network?
Also a management centre needed to handle a 8130 HA pair or not?
Is FS-VMW-SW-K9 to manage?
Hello
You must netmods with the device, which can be ordered with the machine.
http://www.Cisco.com/c/en/us/products/collateral/security/firepower-8000...
All modules of firepower including the 8000 series requires center (FMC) of management firepower
Virtual CMF is good enough to manage it. Material FMC is normally made when there is a lot of sensors and rating that must be stored.
Rate if helps.
Yogesh
Maybe you are looking for
-
ZumoCast and Bionic files not supported.
ZumoCast is installed on my Win7 PC and my Bionic. I see most of my a lot with the Bionic files but when I try to view the files in the player the screen goes all black, as it tries to read the files but nothing ever happens. Then when I press the ba
-
HP photosmart 110 prints not after setting in motion
I have a hp photosmart 110 and we moved and set up the computer to the top in the same way but now nothing will print. Windows screens tell print but the printer queue shows all of my documents? How can I get both printing is complete?
-
Can I use Paint to change the color of the text in a jpeg file?
That covers it pretty well. Also, can I put a background color in without the text being covered?
-
Backlight bleeding U2413 Acceptable?
I have a U2410 with a warranty exchange for 5 years and has recently developed a black streak running on a diagonal across the middle. I have contacted Dell about this and sent them pictures. They approved the Exchange, and subsequently, I received a
-
Hi allI want to auto increment based on the groups recordings.I have data like below----------------------------------------------------Area ID Extender--------------------------------------------------BA1 100BA1 120BA1 130GB1 190TC1 178TC1 193DX1 10