Jump to content

Lyon

Members
  • Content Count

    193
  • Joined

  • Last visited

  • Days Won

    7

Lyon last won the day on November 15 2014

Lyon had the most liked content!

About Lyon

  • Rank
    Level 2

Recent Profile Visitors

376 profile views
  1. Lyon

    SPI issues on LM4F120H5QR

    Hi, A few words about your problem: 1) since you need a sd-card example, maybe the best way is to download the Tiva package from TI - there is an example which run on CCS (and i suggest to move to CCS, since the Energia does not have a debugger, AFAIK). The sd-card configuration starts by sending some data at the rate of 400KHz, in SPI mode 0, toggling CS on every byte. Then after that, when the communication is established, the frequency is changed to 12MHz. 2) since you made some test on another device type (and function) - many devices uses mode 0 and mode 3 or mode 1 and mode 3, so you can check also the SPI MODE 3, which is recognised to keep CS low until you finish sending a burst of data. Keep in mind you need to read each data after sending one - this is SPI nature, there are two synchronous shifting register under the same clock, connected as a ring, so two data are moved at once.
  2. Lyon

    Analog/ADC example for TM4C129

    Hi, A nice application note on SAR ADCs can be found here: https://www.ti.com/seclit/sl/slyc140/slyc140.pdf Useful for using ADCs on Tiva and not only.
  3. Lyon

    Need help with UART

    After (f=='2'), f is changed to '3' where there is not any option to process for that. Shouldn't be f=1 again to toggle between the two options? L
  4. Lyon

    Flashing a Tiva Launchpad under OSX

    Hi, A nice GUI for MAC can be build from Eclipse + the plugin from this link: http://gnuarmeclipse.github.io The result is something powerful as CCS, if you add openOCD. Also openOCD can be used from terminal, so you have another tool to flash a .bin file.
  5. Lyon

    HC06, Tiva C Launchpad, BlueTerm oddity

    Hi, Please see this link: http://www.elecfreaks.com/wiki/index.php?title=Bluetooth_Bee#Programming It is stated that your device is/ has AT compatible protocol, so your commands should be prefixed by AT. The link has a test program written in Energia, you may try that. As for your code, while you claim starting with qs-rgb, your file is uart-stdio, which may be unsuitable for your purpose. Depending on ypur real application, you must make new software functions to include these AT commands. L
  6. Lyon

    Tiva Tm4C Harware PWM

    Hi, But the driverlib functions are consistent with the user manual! In general, it is useful to use these instead direct register addressing, for fast programming. This will ease your work. Some other people may comment that this is time consuming. If it is your case, at least look at them and use the function content, without wrapping (some time is really spent in those functions - the ASSERT takes some time, but once the program is debugged, these can be removed). Sometime it is really more convenient to use direct registers - but after you have more experience with this micro. In your case: to get your result, use the code generated by Pinmux utility. take care and look/use at all #include declarations in those files. Add the following global symbols to avoid any compilation/linking errors: DEBUG CLASS_IS_TM4C123 PART_TM4C123GH6PM TARGET_IS_BLIZZARD_RA1 gcc if you use GCC/Energia, ccs="ccs" (CCS), ewarm (IAR), rmvdk (Keil). MAP_ prefix can be removed and in this case pure driverlib functions will be used or if you keep it, then functions available in ROM will be used if available, otherwise from driverlib. Try and tell the result (and the tools used if still with problems) L
  7. Lyon

    Tiva Tm4C Harware PWM

    Hi, In this case, I suggest to download/install/run the application Pinmux from TI - select then your micro type, configure the pins as you need and the application will generate the initialization code for you. Then compare with your code. Take care will be different, since the Pinmux uses driverlib - you may replace your code or you may inspect the functions used there to see the registers used to initialize the pins. L
  8. Lyon

    Tiva Tm4C Harware PWM

    Hi, PF3 is on PWM module 1 - PWM7 - so please see what you need to use in chapter PWM of your user manual - and decide then corrections/modifications. L
  9. Lyon

    can not debug

    Hi, For the moment you can trust the samples. Try to test/check other pins also, try an UART or SPI. Since it is your board, check/ double check your board for shorts with other pins/traces - sometimes it may happen to have small, near invisible shorts... Worth to try also a second board if you have. L
  10. Lyon

    can not debug

    Hi, First of all, your JTAG pins must have a pull-up resistors mounted on-board. Second, if you use your Lauchpad board as debug-out ( to debug another board) then you must disable your LP target micro ( the test/target micro from LP board, the debug one should be active). You can do that by short-circuit of reset capacitor on LP board. L
  11. Lyon

    using ADC tivalaunchpad

    Hi, For your temperature sensor you may search this forum or TI's Tiva forum, it is possible to find out some posting related to this. The alternative is to use TI's I2C libray and of coarse to dig into the data sheet of your sensor. I know it is bulky, but that is for all specialized sensors. And the interface it is not a simple one, but can be used. L
  12. Lyon

    using ADC tivalaunchpad

    Hi, At the motobike battery voltage, the ADC offset mostly does not matter, or is within a good accuracy. It can be measured and used into a formula to get better results, but at the expense of some external components. More, you must scale down the voltage to be within the ADC range, (the maximum scaled battery voltage should be less than maximum ADC range) and the scaling is better to be done with resistors and an op-amp, since the ADC input impedance is not so high. TI has all sort of components to make measurements, including temperature sensors. Choose whatever is convenient to you. I prefer ones giving scaled results (degC/mV inmy case) since I only measure the voltage without too much calculations. L
  13. Lyon

    using ADC tivalaunchpad

    Hi, We need more info from you - what is your battery voltage (i.e. CR2032, or car battery, or other? We have in production line battery systems even for 110V dc ) and also what kind of themperature do you need to measure - ambient one, battery temperature, chip temperature (there is a temperature sensor on-chip). And what is your temperature sensor? L
  14. Lyon

    make a circuit with H6PM sample

    Hi, Sorry, do not understand - what do you mean by "make a JTAG circuit manual"? If you mean what alternative you have to get an ICDI device able to debug/flash your board - the answer is yes, there are alternatives, including from TI, one of them (XDS100) can be either baught, ready to use, either you have the whole design available for DIY. L
  15. Lyon

    make a circuit with H6PM sample

    Hi, First this one: http://www.ti.com/lit/an/spma059/spma059.pdf The second, Launchpad board manual, hope you have it. One word of caution: you say: "can use all function as a Tiva Launchpad without JTAG." but design the board with JTAG connector, otherwise you are lost... L
×