I am working on 8 bit MCU Evaluation board. Whenever I am going to debug my source code then its showing "CPU core could not start". Please let me know if any solution on this.
What is the minimum and maximum current that can be applied to an analog input destined for the ADC?
I have some passive input conditioning circuitry that may reduce the curent to an unacceptably low level. There isn't much said about input pin current requirements in the data sheet.
My chip is C8051F320.
I use PCA to measure frequency (15K~5K) and send to PC by USB as 1K speed.
I use interrupt as follow:
3.Timer0 as basetime for PCA
4.Timer1 as 1K to send data to PC
if PCA>USB windows can't find the chip.
if PCA<USB when USB working PCA will timeout then get wrong data.
Hello everyone, I need your valuable ideas ..
We create the usb keyboard based your mouse example with 8051f320. It works with some laptops but with some does not.
I do not understand the real problem. When I check with usb tool when problem happen it says string descriptors are not available(you can find it in the attachment). But sometimes as I said it works perfectly.
I will share the whole code. Can you check it ?
The EFM8SB1-RM.pdf the use of the lock byte but it contadicts the FLASH_PageErase() software
* @fn FLASH_PageErase * * @brief * This routine erases the flash page containing the linear flash address * <addr>. Note that the page of flash page containing the Lock Byte cannot be * erased if the Lock Byte is set. * * @param addr - address of any byte in the page to erase * valid range is from 0x0000 to 0x1FFF for 8 kB devices * valid range is from 0x0000 to 0x0FFF for 4 kB devices * valid range is from 0x0000 to 0x07FF for 2 kB devices * * @return void
Hi, I'm a beginner trying to connect a UB1 microcontroller to a TI drv8830 motor driver via I2C using the SMB bis on UB1. I'm using the starter kit example code Master SMB BUS and code from an141.pdf.
Where are global variable headers like SMB_DATA_OUT and TARGET initially defined? I can't find where they are connected to the smb registers in any of the headers.
Just purchased the starter kit and freshly installed Simplicity Studio with Simplicity IDE (Not Keil).
Have fallen at the first hurdle...
Studio recognises the starter kit and gives me demo options. If I select Rainbow Blinky, I get an error - "Unable to connect to device 000440088718" during 'Uploading to Device'.
I can't understand why there might be a problem uploading, when it clearly is communicating via the USB port (Win 10 and no reported issues in Device Manager).
Possibly associated problem:
If I go to software examples and select the Blink ASM example, it fails in the CDT Build Console: 'Error: Program "make" not found in PATH'.
In the Project Explorer window, there are frequent declarations of 'No Toolchain...etc').
What is a CDT?
What is a toolchain?
I'm learning how to write and read to and from register with the "F38x_SMBus_EEPROM" example project. The code always gets stuck at the first read on the "while(SMB_BUSY);" line. It never makes it into the reading process. When does SMB_BUSY go back to 0 after the first write?
I',m in Simplicity Studio v4 SDK 4.0.8
Attached is the example.
I have been working with the MCU C8051F350 and have some questions regarding the ideal way to change the measurement Channel (e. g. AIN2+ SE to AIN4+ SE).
I have tried 2 different approches with different results and questions, in both variants I want to sample 5 samples -> average -> change channel repeat:
1. Measuring in continious Mode:
Init ADC and first channel -> start continious Mode -> Sample 5 Samples -> change ADC mode to Idle -> Init other Channel -> start continous Mode -> ....
I have gotten some good results, but I have seen that the first sample after changing the Channel is always a little bit more off than the others. This isn't the biggest issue, since I could just dismiss this value. But after some not repetitive amounts of changed channels (something betwen 4 - 10 times) the ADC gets a SINC3 filter clip error ( I am using the SINC3 Output), although this error appears the values still seem to be "ok" there is no big change of the result in the registers. Still I do not want to have this error appearing, like this. I assume this has something to do that I start a continious measurement and stop it in between with the Idle command and so the SINC3 filter are not reset and in some certain cases this causes for the new measurement this error, but I am not sure about this. It is important to note that if I am not changing the channels and just sample one channel continiously all the time no SINC3 filter clip error occours.
I really would like to use this approach since it this way faster then the second one, but I am not sure how to stop and restart this Measurement properly.
2 approach: Measuring in Single Mode
Init ADC and first channel -> start single Mode -> get Sample -> repeat this 4 more times -> (ADC is automatically in IDLE mode) Init other Channel -> start single Mode -> ...
This works properly, I can also see that the first value seems to be a little bit more off than the others (could be resolved with more waiting time after channel switch) and I never get the SINC3 filter clip error. The big disadvantage is that the repeated start of each measurement needs about 120-150ms. This means the measurement needs this time for each sample and I would really like to avoid this.
If u need to see some code, how I implemented it, just let me know I will glady post it.
I would really like to hear, how I can resolve the issue in my first approach or even other possibilities how to change the Measurement channel properly.
Thanks in advance.