Jump to content

biza

Members
  • Content count

    63
  • Joined

  • Last visited

About biza

  • Rank
    Level 1

Recent Profile Visitors

456 profile views
  1. MSP432P401R I2C +TMP006

    thanks in advance
  2. MSP432 RTC User adjust

    solved
  3. MSP432 RTC User adjust

    solved
  4. MSP432 RTC User adjust

    now I have done some alterations on my file clock.c, and i see in the register's the clock working, so how can I get each parameter (Year, Month, Day, Hour, Minute)
  5. MSP432 RTC User adjust

    can anyone some help me? I have some problems with user rtc configuration in msp432 I made a firmware where the user choose by hardware configuration adjust date and time (alarm clock). The problem is ... after the user adjust date and time I would like use the rtc to control the watch and show the current date and time in a lcd. The problem is ... after the user adjust date and time I would like use the rtc to control the watch and show the current date and time in a lcd. Soo i need some help in two things pass the user value (decimal) to hexadecimal or BCD and the inverse get the hexadecimal or BCD value to decimal to show in LCD . I'am using CCS, in CMSIS on attach i leave the code I have made to test it!
  6. MSP432 RTC User adjust

    can anyone some help me? I have some problems with user rtc configuration in msp432 I made a firmware where the user choose by hardware configuration adjust date and time (alarm clock). The problem is ... after the user adjust date and time I would like use the rtc to control the watch and show the current date and time in a lcd. The problem is ... after the user adjust date and time I would like use the rtc to control the watch and show the current date and time in a lcd. Soo i need some help in two things pass the user value (decimal) to hexadecimal or BCD and the inverse get the hexadecimal or BCD value to decimal to show in LCD . I'am using CCS, in CMSIS on attach i leave the code I have made to test it! test.zip
  7. MSP432P401R I2C +TMP006

    Hi fellows, I have some facing some problems with interface on sensor TMP006, now I have done the I2C driver in CMSIS, the problem is in the TMP006 file, I can not configure the registers to make the conection with i2c protocol I2C.c I2C.h tmp006.c tmp006.h
  8. Help with some registers

    Hello Rei Vilo, it was not my intention to post more than once, something wrong happened, to post the post several times
  9. Help with some registers

    Hello Fellow, I need some help with a code excerpt, i can't convert this following code of MSP430F5529, into a code of MSP432. someone can help me? void Set_DMA_SPI(void) { DMACTL0 = DMA0TSEL_12; // USCI_B0 Transmit Ready Trigger //DMA0SA = (void (*)())&UCB0RXBUF; // Source block address //DMA0DA = (void (*)())ADC_Read_data; // Destination single address DMA0SZ = 16; // Block size DMA0CTL = DMADT_4 + DMADSTINCR_3 + DMADSTBYTE + DMASRCBYTE; // Rpt, inc src, byte-byte DMA0CTL |= DMAEN; // Enable DMA for consecutive Xfers }
  10. SD card data logging

    what kind of mcu are you using, can you show some code to help you?
  11. Hello Friends, Now I facing some problems with getting correct readings of ADC ports in MSP432. I Am using a multimeter to get the viability of the correct process. I am using CCS 7.0 and CMSIS mode writing code. My question... it's normal the measurements not be stable? I am using P5.5 pin port (A0) and this pin have different values of voltage, or any time change the value. It' is normal? I leave my code for get the readings for the ADC. #include "msp.h" /*DEFINE VAR LIKE A INTEGER*/ volatile int value_adc; void ADC_Initialize(void){ /*CONFIGURE LED OUTPUT*/ P1->OUT &= ~BIT0; /*CLEAR LEAD OUTPUT */ P1->DIR |= BIT0; /*SET DIRECTION OUTPUT*/ /*ADC CONFIGURATION*/ P5->SEL1 &= ~BIT5; /*CONFIGURE P5.5 (A0) FOR ADC*/ P5->SEL0 |= BIT5; /*ENABLE GLOBAL INTERRUPTS*/ __enable_irq(); NVIC->ISER[0] = 1 << ((ADC14_IRQn) & 31); /*ENABLE ADC INTERRUPT IN NVIC MODULE*/ ADC14->CTL0 &= ~ADC14_CTL0_ENC; /*CONFIGURE ADC14*/ ADC14->CTL0 = ADC14_CTL0_SHT0_2 | ADC14_CTL0_SHP | ADC14_CTL0_ON; /*ADC14 ON | S&H=16 | SAMPLING TIME*/ ADC14->CTL1 = ADC14_CTL1_RES_3; /*USE SAMPLE TIME, 14 BIT'S CONVERSION RESULTS*/ ADC14->MCTL[0] |= ADC14_MCTLN_INCH_0; /*A0 ADC INPUT SELECT Vref=AVCC*/ ADC14->IER0 |= ADC14_IER0_IE0; /*ENABLE ADC CONVERT COMPLETE INTERRUPT*/ SCB->SCR &= ~SCB_SCR_SLEEPONEXIT_Msk; } void ADC_Task(void){ volatile unsigned int i; //P1->OUT ^= BIT0; for (i = 200000; i > 0; i--); /*DELAY CYCLE*/ ADC14->CTL0 |= ADC14_CTL0_ENC | ADC14_CTL0_SC; /*ENABLE CONVERTION | SAMPLING CONVERSION*/ __sleep(); __no_operation(); } void ADC14_IRQHandler(void) { // if(ADC14->MEM[0] >= 0x7FF){ /*CONVERT DE SIGN OF CONVERTION IN A VARIABLE*/ value_adc = ADC14->MEM[0]; LCD_SetInt(value_adc,12 ,0); printf(value_adc); /*VERIFY IF THE INPUT PINS IS SET TO*/ //while(ADC14->CTL0 & ADC14_CTL0_BUSY); /*VOLTAGE CALCULATIONS*/ //value_vol = (value_adc * Vref_1)/digitalValue_1; // sprintf(adcData,"%2.2f",value_vol); // LCD_SetText(adcData,6 ,0); // temp = value_vol/gradeTemp; // sprintf(TEMP_C,"%2.2f",temp); // LCD_SetText(TEMP_C,0 ,0); //LCD_SetText(TEMP_C,0 ,0); /*CURRENT*/ // UART_Task(adcData,TEMP_C); /* if(value_adc > newValue_Adc){ P1->OUT |= BIT0; }else{ P1->OUT &= ~BIT0; }*/ //}else{ // LCD_SetText("ERROR",6 ,0); //} }
  12. Hello NurseBob, Sorry for the delay, but I've been sick. I send you the data of the connections, for LCD and SDcard, PORT | PIN conections. MSP432------------------>LCD MSP432------------------>SDcard J4 J1 P2.6----------------------->D4 P1.5------------------>CLK P2.4----------------------->D5 P4.6------------------>CS/SS P5.6----------------------->D6 J2 P6.6----------------------->D7 P1.6------------------>MOSI P2.3----------------------->E P1.7------------------>MISO P6.7----------------------->RS The SDcard board:
  13. Hello NurseBob, sorry, i forgot to say what dispositive who am using, yes is the MSP432. But I not using the booster pack, its a simple arduino shield to SDcard, i really do a schema to share with you. This code have a LCD conection too.
  14. Hello people, I'am trying use a SDCARD only to regist data. All my project was made with "MSPClassic Registers", so I saw in the forum a Bluehash post, but was in CMSIS, in mode to satisfy my project I try to change some files. Now I have some problems to finish him there is someone who can help me?I need Something very simple, just confirm if the card is loaded or not and save data Conections: * P4.6 - CS (active low) * P1.6 - MOSI UCB0SIMO * P1.5 - CLK UCB0CLK * P1.7 - MISO UCB0SOMI FILES: spi.c lcd.c lcd.h main.c main.h pff.c pff.h config.h diskio.c diskio.h integer.h spi.h
×