To help you find solutions to problems that have already been solved, we have posted this message. It contains an entire topic ported from a separate forum. The original message and all replies are in this single message.
Posted: Oct 07, 2005 - 07:53 AM
I am looking for some examples using the pwm beans. Does anyone know of any? On the metrowerks resource pack there's a voice program but it does not use the beans and is very limited. Any help would be appreciated.
Posted: Oct 24, 2005 - 09:39 AM
There are some examples in the installation folder:
Select the processor family you use.
I noticed that when I cast a unsigned int to a float, the float is always truncated to zero decimal points. The following example code produces this problem.word counts;
float fcounts;counts = 1000;fcounts = (float)counts + (float)0.6785;
If I view the variable fcounts in the debugger it will show 1000.I can't seem to get it to not truncate the 0.6785This only occurs when casting to a float. Any ideas on what I'm doing wrong or is this a problem with the IDE.
I have been developing on the 56F8323 micro. I am very please with it, but for cost reasons I am considering scaling back to the 56F8122. Currently I am using the serial bootloader to reflash the micro with new software. In the manual for the serial boot loader I came across the following statement:
The Bootloaders application was not designed for the 56F81xx devices. The 56F83xx Bootloaders application does, however, fully support 56F81xx software development.
Can anyone explain what this means? I would like to use a bootloader with the 56F8122. Is there a different bootloader I need to use or will the bootloader for the 56F8323 work? Any experiences you may have had along these lines will be appreciated.
Posted: Nov 28, 2005 - 04:55 PM
There is a bootloader for the 5681xx included with the product. Simply do a New-> Processor Expert Example Stationery, and chose the Bootloader -> 5681xx option.
Hello, I am new to Codewarrior for DSP, and when i am using Codewarrior for microcontrolers i am able to define Ports as volatile variable giving address, but with codewarrior for 56F i can not define this way, Am i doing something wrong, if Not how can i see GPIO content at debug enviroment, one more question is that possible to define a variable as periodic like in codewarrior for Hcs family.
thanks in advance.
Posted: Nov 28, 2005 - 06:45 PM
The colon operator used to put a certain data structure at a certain location in memory isn't supported on Hybrid. The best way to interact with ports and peripherals is through Processor Expert. PE provides a lot of debugging insight into what's going on during debug. If you look at the PE docs regarding the peripheral in question, you should be able to see how to get GPIO info.