Jump to content
43oh

StrangerM

Members
  • Content Count

    57
  • Joined

  • Last visited

  • Days Won

    5

StrangerM last won the day on March 8 2017

StrangerM had the most liked content!

About StrangerM

  • Rank
    Level 1

Profile Information

  • Gender
    Not Telling
  • Location
    Sankt-Petersburg
  1. I have played with QEI. I have two quadrature encoders with index. But where they are? FR4133 was close . And I have made the simple emulator of encoder with index. I have connected FR4133 with Tiva. P1.3->PD3+PE1 (INDEX&Interrupt) ; P1.4->PD7 (PhB) ; P1.5->PD6 (PhA) The code from here and from http://forum.43oh.com/topic/8875-problems-using-qei-with-ek-tm4c123gxl/ was used for Tiva program. #include <stdint.h> #include <stdbool.h> #include "inc/hw_gpio.h" #include "inc/hw_ints.h" #include "inc/hw_memmap.h" #include "inc/hw_types.h" #include "driverlib/gpio.h"
  2. In low-power mode. CPU is stopped & runs only in interrupt subroutine. FR6989 - RTC & Temperature sensor by RTC interrupt 1 per sec #include "LCD_Launchpad.h" int n ; int s ; int m ; int h ; int d ; int M ; int y ; LCD_LAUNCHPAD myLCD ; void setup() { pinMode(P1_0, OUTPUT); digitalWrite(P1_0,LOW) ; Serial.begin(9600) ; myLCD.init(); WDTCTL = WDTPW | WDTHOLD; // Stop Watchdog Timer PJSEL0 = BIT4 | BIT5; // Initialize LFXT pins // Configure LFXT 32kHz crystal CSCTL0_H = CSKEY >> 8; // Unlock CS registers CSCTL
  3. In addition to 2 examples. Examle for FR4133. #include <msp430.h> #define CALADC_15V_30C *((unsigned int *)0x1A1A) // Temperature Sensor Calibration-30 C // See device datasheet for TLV table memory mapping #define CALADC_15V_85C *((unsigned int *)0x1A1C) // Temperature Sensor Calibration-85 C float temp; float IntDegF; float IntDegC; void setup() { // put your setup code here, to run once: Serial.begin(9600) ; Serial.println(12); // WDTCTL = WDTPW | WDTHOLD;
  4. I think that it will not work. It has no RTC with a calendar. And it has other kind of a temperature sensor.
  5. In a result I have made from Launchpad MSP430FR4133 a tachometer, plus ? counter of machine hours and plus ? voltmeter for my boat.
  6. "uint8_t lo __attribute__ ((section (".text"))) ; " does not work. http://forum.43oh.com/topic/5474-energia-and-wolverine-tips/ But.... it runs. Simple example #include <msp430.h> #include "LCD_Launchpad.h" #define M P2_6 #define M1 P1_2 uint8_t L ; LCD_LAUNCHPAD myLCD ; uint8_t lo __attribute__ ((section (".text"))) ; void setup() { myLCD.init(); pinMode(M, INPUT_PULLUP); pinMode(M1, INPUT_PULLUP); // Serial.begin(9600) ; myLCD.clear(); } void loop() { if (digitalRead(M)==0 ){ SYSCFG0 &= ~PFWP; // Program FRAM write enable lo=5;
  7. I used HAT with USB/COM cable and have checked up by RasPI test generator. Excellent.
  8. It`s for TIVA-C. As is... AIS_dAISy_TIVANEW.zip
  9. About pins - It was a long time ago. :-)... As is :-) Regards, Michael.
  10. In Energia - Tools/Board/LaunchPad w/ msp430g2553 (16MHz)
  11. Hello, Rian. Yes, I am sure. But full part of the text is /* // configure WDT WDTCTL = WDTPW | WDTHOLD; // stop watch dog timer // set clock to 16MHz BCSCTL1 = CALBC1_16MHZ; DCOCTL = CALDCO_16MHZ; BCSCTL2 = 0; // MCLK and SMCLK = DCO = 16MHz */ You can see /*.....*/ . This part of the text does not work. Energia is a cross platform. It works with every launchpad. Regards, Michael.
  12. Yes, But You are crazy too. :-) You made AIS receiver from GMSK modem. :-)... Made in USA. :-) PS However, and I am surprised, that it (transmitter) works.
×
×
  • Create New...