Jump to content
43oh

StrangerM

Members
  • Content Count

    57
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by StrangerM

  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.
  13. I have made a simple test generator for dAISy on RasPi 2 and USB sound blaster. I used the programm PiFm with command "arecord -fS16_LE -r 48000 -Dplughw:1,0 - | sudo ./pifm - 162.025 48000 (or arecord -fS16_LE -r 48000 -Dplughw:1,0 - | sudo ./pifm - 161.975 48000)". I played the sound file AIStest.wav on a laptop. I connected an audio output of the laptop with an audio input of the sound blaster. It works perfectly well with dAISy and AIS ENGINE3. uais_spb.zip 22122016.zip
  14. Thank you, Adrian. The problem really was in firmware file`s downloading. I used zip file and succeeded. Regards, Michael.
  15. Hi chicken. I can not make the upgrade of dAISy USB v4.04 - dAISyPack (5529) . BSL_USB_GUI.exe aborts with Daisy_hw0_fw4_07.txt and Daisy_hw0_fw4_08.txt but runs well with Daisy_hw0_fw4_04.txt and Daisy_hw0_fw4_03.txt. (Win10)
  16. Heh. I do it - Energia from CCS6.1 (in FLASH) & .elf from Energia. I move a few include files & change HardwareSerial.cpp - before //SciaRegs.SCIHBAUD.all = (unsigned int)((F_CPU/(ClkCfgRegs.LOSPCP.bit.LSPCLKDIV * 2))/(baud*8)-1)>>8 ; //SciaRegs.SCILBAUD.all = (unsigned int)((F_CPU/(ClkCfgRegs.LOSPCP.bit.LSPCLKDIV * 2))/(baud*8)-1)&0x00FF; & runing SciaRegs.SCIHBAUD.all = (unsigned int)((F_CPU/(ClkCfgRegs.LOSPCP.bit.LSPCLKDIV *2))/(baud*16)-1)>>8 ; SciaRegs.SCILBAUD.all = (unsigned int)((F_CPU/(ClkCfgRegs.LOSPCP.bit.LSPCLKDIV *2))/(baud*16))&0x00FF;
  17. & must be (for USB conn.): EALLOW; GpioCtrlRegs.GPCMUX2.bit.GPIO84 = 1; GpioCtrlRegs.GPCMUX2.bit.GPIO85 = 1; GpioCtrlRegs.GPCGMUX2.bit.GPIO84 = 1; GpioCtrlRegs.GPCGMUX2.bit.GPIO85 = 1; EDIS;
  18. Example://########################################################################### // FILE: Example_2837xSSci_Echoback.c // TITLE: SCI Echoback. // ..................................... //! \b Watch \b Variables \n //! - LoopCount - the number of characters sent //! //! \b External \b Connections \n //! Connect the SCI-A port to a PC via a transceiver and cable. //! - GPIO28 is SCI_A-RXD (Connect to Pin3, PC-TX, of serial DB9 cable) //! - GPIO29 is SCI_A-TXD (Connect to Pin2, PC-RX, of serial DB9 cable) // //########################################################################
  19. The Launchpad do not run with Energia17. Error - warning #10063-D: entry-point symbol other than "_c_int00" specified: "code_start" error #10010: errors encountered during linking; "BlinkPort.out" not built gmake: *** [blinkPort.out] Error 1 & bad examples for CCS - errors and errors. Students writers? :-(
  20. ESP01 consumes too much current. So WiFi is good but USB is better.However, I made upgrade NASA ENGINE3. I inserted the GPS shield with 9600 baud and the Arduino nano (for chenging 9600 to 4800) in ENGINE3. ENGINE3 can insert GPS string with 4800 in 34800 ENGINE3 sending by COM port. I inserted step down converter 12V->3.3V and ESP01 in ENGINE3. ESP01 sends summary signal in WiFi telnet port (23). So there is a new ENGINE3. NEW .................If to add GPS shield we can get a alarm device of dangerous closing.... It`s a alarm device of dangerous closing (module with generic
  21. O yes. Excuse me. I did not see correctly.
  22. I did it(first step). Example "WiFiTelnetToSerial" is a good platform for this purpose. ESP-01 - 3.3V 50 mA. PS GPS is connected directly to ESP-01. OpenCPN shows where I am situated by wifi (192.168.1.42:23).
×
×
  • Create New...