Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by trungkiena6

  1. Can I get the MK2 Educational BoosterPack & Renesas Kits.
  2. How can i take it? If i from Vietnam.
  3. trungkiena6

    NR4F24L01 in CCS

    Hi everybody! I have received NRF24L01, i want to find library for it. But i can't find it. Do you have it. please share me. Thank everybody
  4. trungkiena6

    How to calc the clock

    Hello everyone. I have a problem to calc clock in code. @@. When i code // SysCtlClockSet(SYSCTL_SYSDIV_2|SYSCTL_USE_PLL|SYSCTL_XTAL_16MHZ|SYSCTL_OSC_MAIN); // I can't calc clock. Can you explain me to calc it. Thank so much.
  5. Hi All! I have a sharp memory LCD boosterpack and Tiva Lauchpad. How can i use LCD with Tiva. Because i saw schematic BoosterPack and i found that SPI, which will be used for LCD don't same Tiva. How can i use it. Please help me Thanks everyone.
  6. trungkiena6

    43oh just crossed 20,000 members!

    Congrz ^^!
  7. Hello everyone. I have a TM4C129X Development Kit, but i don't use it. Who want to buy it, please contact me at: trungkiena6@gmail.com Price: TM4C129X: 125usd Sensor Hub: 30 usd Thanks everyone
  8. trungkiena6

    Stellaris EKT-LM3S8962 Kits

    How can i get it @@bluehash
  9. trungkiena6

    Stellaris EKT-LM3S8962 Kits

    @bluehash, i need it. i'm learning ARM Ti. I'm beginner. I'm from VietNam
  10. @nam5880, if you in VN, i will sell it with you.
  11. trungkiena6

    TI Back to School Promotion

    MSP-WDS430BT1000AD - $49.99 not $24.99 @@
  12. trungkiena6

    TI Back to School Promotion

    why can't ship in asia. @@.
  13. trungkiena6

    [TLC59116F] Problems with it

    Hello everyone. i have a project with TLC59116F, but my project can't run. It is my code. P/s: Thanks aBUGSworstnightmare with I2C API /****************************************************************************** * * Module : TLC59116F_TEST * Description : TLC59116F * Tool : KEIL * Chip : Stellaris * History : * Version : * * Author : BTK * Notes : None, * *****************************************************************************/ /****************************************************************************** * IMPORT *****************************************************************************/ #include "inc/hw_memmap.h" #include "inc/hw_types.h" #include "driverlib/gpio.h" #include "driverlib/sysctl.h" #include "driverlib/i2c_Stellaris.h" #include "driverlib/adc.h" #include "utils/uartstdio.h" /* Thanh ghi chuc nang cua TLC59116*/ #define MODE1 0x00 #define MODE2 0x01 #define PWM0 0x02 #define PWM1 0x03 #define PWM2 0x04 #define PWM3 0x05 #define PWM4 0x06 #define PWM5 0x07 #define PWM6 0x08 #define PWM7 0x09 #define PWM8 0x0A #define PWM9 0x0B #define PWM10 0x0C #define PWM11 0x0D #define PWM12 0x0E #define PWM13 0x0F #define PWM14 0x10 #define PWM15 0x11 #define GPPWM 0x12 #define GFREQ 0x13 #define LEDOUT0 0x14 #define LEDOUT1 0x15 #define LEDOUT2 0x16 #define LEDOUT3 0x17 #define SUBADR1 0x18 #define SUBADR2 0x19 #define SUBADR3 0x1A #define ALLCALLADR 0x1B /*----------------------------------------------------------------------------*/ #define RESET GPIO_PIN_6 #define ADDRESS 0x68 /****************************************************************************** * EXTERN *****************************************************************************/ void InitConsole(void); void Delay_ms(unsigned long ulTime); void Delay_us(unsigned long ulTime); void Delay_s(unsigned long ulTime); /****************************************************************************** * GLOBAL VARIABLE *****************************************************************************/ /****************************************************************************** * ROUTINES *****************************************************************************/ /* Khoi dong UART */ void InitConsole(void) { SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA); GPIOPinConfigure(GPIO_PA0_U0RX); GPIOPinConfigure(GPIO_PA1_U0TX); GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1); UARTStdioInit(0); } /* Make Delay */ void Delay_ms(unsigned long ulTime){ SysCtlDelay(SysCtlClockGet()/(3000*ulTime)); } void Delay_us(unsigned long ulTime){ SysCtlDelay(SysCtlClockGet()/(3*1000000*ulTime)); } void Delay_s(unsigned long ulTime){ SysCtlDelay(SysCtlClockGet()/(3*ulTime)); } /****************************************************************************** * MAIN *****************************************************************************/ int main(void) { SysCtlClockSet(SYSCTL_SYSDIV_2_5 | SYSCTL_USE_PLL | SYSCTL_OSC_MAIN |SYSCTL_XTAL_16MHZ); InitConsole(); GPIOPinTypeGPIOOutput(GPIO_PORTA_BASE,RESET); GPIOPinWrite(GPIO_PORTA_BASE,RESET,0x40); I2CSetup(I2C0_MASTER_BASE,true); I2CBusScan(I2C0_MASTER_BASE); I2CRegWrite(I2C0_MASTER_BASE,ADDRESS,PWM0,0xAA); Delay_s(1); I2CRegWrite(I2C0_MASTER_BASE,ADDRESS,PWM0,0x00); Delay_s(1); while(1){ } } /****************************************************************************** * END OF .c *****************************************************************************/
  14. trungkiena6

    LED Cube BoosterPack

    Hi! holewheat. Can you share me about your schematic with Led Cube Boosterpack. It's very fantastic! Thank you so much and God bless with you
  15. trungkiena6

    [Help] How to test SPI Communication

    Thank you everyone. ^^
  16. trungkiena6

    [Help] How to test SPI Communication

    Hello everybody. I read an example code MSP430G2553 about SPI, But i can't know how it run, and how i can test SPI in it. Please help me. My code: #include <msp430.h> int main(void) { WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer while (!(P1IN & BIT4)); // If clock sig from mstr stays low, // it is not yet in SPI mode P1SEL = BIT1 + BIT2 + BIT4; P1SEL2 = BIT1 + BIT2 + BIT4; UCA0CTL1 = UCSWRST; // **Put state machine in reset** UCA0CTL0 |= UCCKPL + UCMSB + UCSYNC; // 3-pin, 8-bit SPI master UCA0CTL1 &= ~UCSWRST; // **Initialize USCI state machine** IE2 |= UCA0RXIE; // Enable USCI0 RX interrupt __bis_SR_register(LPM4_bits + GIE); // Enter LPM4, enable interrupts } // Echo character #pragma vector=USCIAB0RX_VECTOR __interrupt void USCI0RX_ISR (void) { while (!(IFG2 & UCA0TXIFG)); // USCI_A0 TX buffer ready? UCA0TXBUF = UCA0RXBUF; } Thank you and gold bless you
  17. trungkiena6

    NR4F24L01 in CCS

    Thank admin.
  18. trungkiena6

    Install STLink In Win8

    Hello everyone, i have buy STM32F4 Discovery, but my computer run Win8, i can't install STLink driver for my computer, please help me Thanks and regards.
  19. trungkiena6

    Install STLink In Win8

    Error: driver STLink when install, my computer can't find it. plus STM32F4Discovery into USB, debug STlink in Keil can't do.
  20. trungkiena6

    which compiler i should to Use ?

    I think you should use CCS. Because all example you can get at TI web. Write code by CCS
  21. trungkiena6

    Please explain about UARTprintf

    Thank about your qs. I found it. ^^.
  22. trungkiena6

    Please explain about UARTprintf

    This is example code #include "inc/hw_memmap.h" #include "inc/hw_types.h" #include "inc/hw_timer.h" #include "inc/hw_ints.h" #include "driverlib/timer.h" #include "driverlib/interrupt.h" #include "driverlib/sysctl.h" #include "driverlib/gpio.h" #include "utils/uartstdio.h" //***************************************************************************** // //! \addtogroup timer_examples_list //! 16-Bit Periodic Timer (periodic_16bit) //! //! This example shows how to configure Timer0B as a periodic timer with an //! interrupt triggering every 1ms. After a certain number of interrupts, the //! Timer0B interrupt will be disabled. //! //! This example uses the following peripherals and I/O signals. You must //! review these and change as needed for your own board: //! - TIMER0 peripheral //! //! The following UART signals are configured only for displaying console //! messages for this example. These are not required for operation of //! Timer0. //! - UART0 peripheral //! - GPIO Port A peripheral (for UART0 pins) //! - UART0RX - PA0 //! - UART0TX - PA1 //! //! This example uses the following interrupt handlers. To use this example //! in your own application you must add these interrupt handlers to your //! vector table. //! - INT_TIMER0B - Timer0BIntHandler //! // //***************************************************************************** //***************************************************************************** // // Number of interrupts before the timer gets turned off. // //***************************************************************************** #define NUMBER_OF_INTS 1000 //***************************************************************************** // // Counter to count the number of interrupts that have been called. // //***************************************************************************** unsigned long g_ulCounter = 0; //***************************************************************************** // // This function sets up UART0 to be used for a console to display information // as the example is running. // //***************************************************************************** void InitConsole(void) { // // Enable GPIO port A which is used for UART0 pins. // TODO: change this to whichever GPIO port you are using. // SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA); // // Configure the pin muxing for UART0 functions on port A0 and A1. // This step is not necessary if your part does not support pin muxing. // TODO: change this to select the port/pin you are using. // GPIOPinConfigure(GPIO_PA0_U0RX); GPIOPinConfigure(GPIO_PA1_U0TX); // // Select the alternate (UART) function for these pins. // TODO: change this to select the port/pin you are using. // GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1); // // Initialize the UART for console I/O. // UARTStdioInit(0); } //***************************************************************************** // // The interrupt handler for the Timer0B interrupt. // //***************************************************************************** void Timer0BIntHandler(void) { // // Clear the timer interrupt flag. // TimerIntClear(TIMER0_BASE, TIMER_TIMB_TIMEOUT); // // Update the periodic interrupt counter. // g_ulCounter++; // // Once NUMBER_OF_INTS interrupts have been received, turn off the // TIMER0B interrupt. // if(g_ulCounter == NUMBER_OF_INTS) { // // Disable the Timer0B interrupt. // IntDisable(INT_TIMER0B); // // Turn off Timer0B interrupt. // TimerIntDisable(TIMER0_BASE, TIMER_TIMB_TIMEOUT); // // Clear any pending interrupt flag. // TimerIntClear(TIMER0_BASE, TIMER_TIMB_TIMEOUT); } } //***************************************************************************** // // Configure Timer0B as a 16-bit periodic counter with an interrupt // every 1ms. // //***************************************************************************** int main(void) { unsigned long ulPrevCount = 0; // // Set the clocking to run directly from the external crystal/oscillator. // TODO: The SYSCTL_XTAL_ value must be changed to match the value of the // crystal on your board. // SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_OSC_MAIN | SYSCTL_XTAL_16MHZ); // // The Timer0 peripheral must be enabled for use. // SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER0); // // Set up the serial console to use for displaying messages. This is // just for this example program and is not needed for Timer operation. // InitConsole(); // // Display the example setup on the console. // UARTprintf("16-Bit Timer Interrupt ->"); UARTprintf("\n Timer = Timer0B"); UARTprintf("\n Mode = Periodic"); UARTprintf("\n Number of interrupts = %d", NUMBER_OF_INTS); UARTprintf("\n Rate = 1ms\n\n"); // // Configure Timer0B as a 16-bit periodic timer. // TimerConfigure(TIMER0_BASE, TIMER_CFG_16_BIT_PAIR | TIMER_CFG_B_PERIODIC); // // Set the Timer0B load value to 1ms. // TimerLoadSet(TIMER0_BASE, TIMER_B, SysCtlClockGet() / 1000); // // Enable processor interrupts. // IntMasterEnable(); // // Configure the Timer0B interrupt for timer timeout. // TimerIntEnable(TIMER0_BASE, TIMER_TIMB_TIMEOUT); // // Enable the Timer0B interrupt on the processor (NVIC). // IntEnable(INT_TIMER0B); // // Initialize the interrupt counter. // g_ulCounter = 0; // // Enable Timer0B. // TimerEnable(TIMER0_BASE, TIMER_; // // Loop forever while the Timer0B runs. // while(1) { // // If the interrupt count changed, print the new value // if(ulPrevCount != g_ulCounter) { // // Print the periodic interrupt counter. // UARTprintf("Number of interrupts: %d\r", g_ulCounter); ulPrevCount = g_ulCounter; } } } When i debug. what i can see. Sr about my question. Because i try to know about stellaris. This is the first MCU ARM i had studied. Thanks all