Jump to content

Search the Community

Showing results for tags 'cc3200'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 176 results

  1. Hi, I've been following the ConnectWithWPA example to see the encryption type. However, it keeps showing me "Encryption Type: 0". What does this mean? Also what does the AUTO return value mean? (from this reference: http://energia.nu/reference/wifi/wifi_encryptiontype)
  2. gr8going

    cc3200 LP I2C port

    Hi I'm using external RTC which has DS1307 where it communicates to my cc3200 using (SDA and SCL) I2C. Please note as oer block diagram there are two I2C interface available in cc3200 LP I'm using RTC lib specified for ds1307 from here Option #1: when I connect my RTC module to Pin P01 and P02 (SCL and SDA) as detailed in CC3200 block diagram I see valid clock/time in my COM port Option #2: Now, When I try the with other I2C port in P4 40 and 39 (top two pins) I'm not seeing any clock/timer value Please help me to understand what might be the reason? why one I2C interface works while other does not? I'm not changing anything in my code/circuit I'm using Serial1 (which is also P01 and P02 similar to one of the I2c port interface) to communicate with other components.. thus we have only one choice to make use of P4 -40 and 39 ports to perform I2C... please help. Thanks!
  3. svcguy

    cc3200 Hardware Serial

    Hello all, Love the site and have found a ton of useful information here! I have a question regarding hardware serial on a CC3200 launchpad (rev 4.1). I have found the pinmaps at http://energia.nu/pin-maps/guide_cc3200launchpad/ and they reference TX/RX, TX(0)/RX(0), and TX(1)/RX(1). I was looking for clarification on how these relate to Serial, Serial1, etc. I have a project that uses I2C and UART and would like to keep the FTDI UART as well for debug. P.S. a similar question was asked here, but this particular part was not answered Thanks, Andy
  4. gr8going

    cc3200 uart Energia application.

    Hi experts!! I'm a beginner and working on CC3200 LP along with Energia IDE. I'm working on a simple project where I've an external device which has RS485 o/p and I need to fetch the values in specified addr location in that device to CC3200 LP. My doubts are #1) we have external module that has device ID+parameter Address and we need to transmit the value in LP through UART, here I'm not sure how to use the UART function to specifically target device+address and return/get the same.... #2) what I'm looking/exploring is that in above example (UART code which Andy shared here ) what function specifically reads DeviceID+parameter Addr and returns that string value to my LP My experiments: I've been checking uart.h file and following lines looks close to what I need to do - but not sure... extern void UARTConfigSetExpClk(unsigned long ulBase, unsigned long ulUARTClk, unsigned long ulBaud, unsigned long ulConfig); extern void UARTConfigGetExpClk(unsigned long ulBase, unsigned long ulUARTClk, unsigned long *pulBaud, unsigned long *pulConfig); I'm planning to have my framework Energia sketch might be like calling below functions in specified order 1) UARTIntClear ==> to initialize/clear in LP 2) UARTIntEnable ==> enable UART of my LP 3) UARTConfigSetExpClk ==> to set what I need to read from the external device to my LP 4) UARTConfigGetExpClk ==> to GET what I need to read from the external device to my LP 5) perform step 1 to 4 after 5 sec ==> loop it Am I missing something in above flow?? My Setup I've installed Tera Term in my PC to monitor com port I've got Rs485 to RS232/TTL converter which can be connected to my cc3200 LP UART PIN_02, PIN_01 (RX_1 & TX_1) ... or nay other UART pin which is applicable. my external device which has RS485 o/p ==> Baud rate of 9600, Parity = Even, Device Address = 1, Stop bit = 1, Data type = 32 bit float real, Data to be red from address (Float) 3913, 3909, 3903, 3965, please advice
  5. Is there a way to wake the CC3200 via WiFi? I read this post but can someone let me know if this is operational in the latest version of Energia?
  6. For low power application (in our case a standalone RedBear Micro with CC3200 on solar cells) it would be desirable to limit transmission power of the 3200 to the minimum necessary. According to the TI datasheet, this could reduce power consumption for transmit from 229mA to ~140mA. Is there any API approach to do this ? ( Would reduction of the M0 clock rate reduce power, too, and if yes, how could it be done ?) Thanks
  7. alikian

    Mini CC3200 Breakout

    Hi All, Does anyone knows CC3200 breakout already build?, very minimum system not like LaunchPad XL. Something like arduino pro mini for CC3200 http://arduino.cc/en/Main/ArduinoBoardProMini Thanks, Ali
  8. i am trying to interface msp430 and cc3200 using UART .i am using the IDE energia ,basically i am reading analog sensor value through msp430g2553 and send it to cc3200 using UART can any one help me with code ??
  9. gr8going

    Serial1 VS Serial in cc3200 uart

    This is in continuation with this post where I was working with two cc3200 one for transmit second for receive so my Energia code as described in other posted was /* Serial Transmit:*/ and for receive Please note: TX pin (P01) in transmit CC3200 is connected to RX pin (P02) of receiver CC3200 PS: P01 == P1-10 P02 == P1-9 The above is working fine and could see character "c" printed in console Now... when I change the Transmitter code as below where I have replaced "serial1" with "Serial" as shown below ... I'm NOT see any results - what is that I'm missing Please note - I've connected TX pin (P03) in transmit CC3200 is connected to RX pin (P02) of receiver CC3200 PS: P04 == P1- 3 P03 == P1-4 Thanks!
  10. I'm trying to update CC3200 Launchpad firmware as described in Energia web site (energia CC3200 guide) Everything seems working correctly but I get the following error message: [10:12:25] INFO: DEVICE CC3200 ES1.32 [10:12:25] INFO: reading version info [10:12:26] INFO: reading version info [10:12:28] ERROR: NWP file is missing from the bundle file. Operation cancelled. [10:12:28] INFO: > Executing Operation: Disconnect [10:12:28] Operation ServicePackProgramming returned. I cannot find references to this kind of error on Energia web site, 43OH forums or TI forums. Any suggestion?
  11. Hi, I know that wifi.begin uses DHCP and grabs an IP assigned to the cc3200. my question is, can I convert the IP to a website name instead of just the IP numbers ? Right now, I am using the simplewebserver example and I get the IP for the device to be It says to open and see the webpage, type that IP into a browser. But Instead of putting that IP into the browser,is there a way that I could put something like mywebsite.com and still get to the same page on IP ? this is all local, so no port forwarding and no accessing the website from outside the router. Thanks, Dennis
  12. i tried without luck all the WS2812 / WS2811 related libraries shown at http://energia.nu/reference/libraries/ they all seem to address different mcu types (?) like https://github.com/ILAMtitan/WS2811Driver complains: 0: fatal error: msp430.h: No such file or directory #include <msp430.h> ^ compilation terminated. and the adafruit neopixel lib for arduino: simple.cpp:5:23: fatal error: avr/power.h: No such file or directory #include <avr/power.h> ^ compilation terminated. actually i need to address only one single WS2812 led. could please point me to the right lib/solution if it already exists ? thanks a lot
  13. Hello, I am building CMSIS DSP library but it takes lots of time in compilation. I want to make a precompiled library of CMSIS DSP. What are the procedures to do it?
  14. Hello, I'm evaluating the CC3200 for use in a somewhat basic wifi application, and I'm wondering what kind of throughput data rates I can expect using Energia? I'm coming from the Bluegiga platform, where the use of the BGScript was painfully slow and very limiting for my purposes - I need to extract a few bytes of each packet from a stream of received packets, and send this data off via UART or SPI -- my maximum need is probably around 1Mb/s. I realize that the rate can very depending on a large number of factors, but I'm just looking for a good guess. Is using energia slower than say using CCS? Do you think I'd be able to achieve this data rate? Thanks!
  15. I need to convert my CC3200's IP address to a series of four bytes. From what I can tell, the IPAddress struct(?) isn't identically equivalent to a four-byte array -- is there any way to do this conversion?
  16. Hi all, At Temboo, we recently released some new machine-to-machine programming tools that let you generate code for M2M networks that use CC3200 LaunchPads as edge devices. You can learn about them here, or pass any questions along to us!
  17. I've just made available an example whose code could be used in various application that use REST APIs and OAuth authentication. It uses the HTTP Client Library that comes with the CC3200 SDK 1.1.0 and TI-RTOS for SimpleLink. All code is in C. It performs the following steps:- Obtains the current time from a SNTP server (this is required by TLS encyrption) Obtain the OAuth 2.0 Authentication token from the Telstra API using HTTP GET over a secure TLS connection Send an SMS message using the Telstra SMS API using HTTP POST over a secure TLS connection There are many more details on the Github Repository:- SMS Doorbell - https://github.com/remixed123/CC3200_SmsDoorBell Here is a video demo of the SMS Doorbell being used - https://vimeo.com/132525037 Glenn
  18. hello, i'm new here and confused where i should place my redbearlab CC3200 wifi mini topics ? my first question would be if there is any WS2812 (neopixel) support for the wifi mini ? thanks
  19. RedBear Labs WIFI mini CC3200 board I tried compiling the blink example and it compiles fine, but fails to upload. Tried using both Windows 7 32bit environment and Ubuntu 14.4 64bit environment. I have installed all the required drivers on Windows. I also had to copy the ftd2xx,dll to the folder where the C3200Prog.exe file is. Received error on both platforms is : Open UART COM1 Can't open device Failed to open uart COM1 Could not open UART COM1 The board seems to work ok because I can connect to it via WIFI. What do I need to do to upload the compiled file. I would prefer a Linux solution.
  20. As an alternative to SmartConfig I want to use the inbuilt web server to allow the user to enter his/her network details I also want to be able to allow a push button type WPS function There are TI examples provisioning_ap and provisioning_wps, essentially, I want to port these to Energia starting with the AP my simplistic attempts have not yielded any results. I flashed the provisioning_ap example to my launchpad and also to a custom board and it worked as advertised. I then flashed my Energia sketch expecting it to trigger the callback. I can log into the Energia AP and the TI web pages are displayed but it didn't print my message. I have read the sections in the SWRU368A.PDF and looked at the sample code but the TI examples are so verbose and often seem to have unnecessary levels of abstraction (especially for an example) So can anyone offer some suggestions on how to use the inbuilt web server with Energia? This is the code/sketch because someone is going to ask to see it. #include <WiFi.h> #include <WiFiClient.h> #include <WiFiServer.h> #include <WiFiUdp.h> // AP Provisioning const char ssid[] = "MyEnergiaAP"; const char wifipw[] = "password"; long retVal = -1; int i; void setup() { Serial.begin(115200); Serial.print("Setting up Access Point named: "); Serial.println(ssid); Serial.print("AP uses WPA and password is: "); Serial.println(wifipw); WiFi.beginNetwork((char *)ssid, (char *)wifipw); while (WiFi.localIP() == INADDR_NONE) { // print dots while we wait for the AP config to complete Serial.print('.'); delay(300); } Serial.println(); Serial.println("AP active.\r\n"); } void loop() { } void SimpleLinkHttpServerCallback(SlHttpServerEvent_t *pSlHttpServerEvent, SlHttpServerResponse_t *pSlHttpServerResponse) { Serial.println("I'm Here SimpleLinkHttpServerCallback"); } Trevor.
  21. I'm getting very frustrated with this CC3200MOD, and the CC3200 in general. First it started with the A0 analog channel always reading 4096 but now on to some GPIO problems. This should be fairly straight forward but apparently they make everything difficult, so I don't know what to say. I have made a custom PCB for using the CC3200MOD. Its supposed to read the 4 ADCs, 3 for accelerometer, which is working great, 1 for an analog microphone, which isn't working at all, but I've given up on it and going to just mux with one of the 3 working ones. Now I have 3 LEDs on the board for general LED applications. These LEDs are on pins(pins of the MOD device) 6,7,8, which correspond to (according to PinMux Tool) GPIO 15,16,17. So ideally I should be able to just pinMode the pins to OUTPUT, and set them HIGH to have the LEDs working. I should mention right now that I have two populated boards both have issues in the same way. So if I was to do this in Energia it would just be: pinMode(15,OUTPUT); pinMode(16,OUTPUT); pinMode(17,OUTPUT); digitalWrite(15,HIGH); digitalWrite(16,HIGH); digitalWrite(17,HIGH); So this is where it gets strange, only 1 LED turns on, only GPIO16. But here is the kicker, GPIO16 turns on only when I enable GPIO15!! What the heck is going on, I think there is an issue with Energia incorrectly labelling pins but I cannot find the solution. I think this is also the issue with the analog pin, but I want to sort this out first. Does anyone know what is going on? Ill break it down: GPIO16 turns on when I digitalWrite(15,HIGH) GPIO15 and GPIO17 don't turn on at all and get some weird low voltage on them. Using Energia
  22. I'm working with the CC3200XL and the Grove starter kit. It contains a PIR sensor. When I try to run the sample, it complains about a missing file. I can't find the file anywhere and don't even understand why Energia is looking for it. But what I need to know is, where can I find the source and header for the file. java.io.FileNotFoundException: C:\Users\Dan\AppData\Local\Temp\build5629486675398969734.tmp\pir_motion_sensor.cpp (The system cannot find the path specified) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at processing.app.preproc.PdePreprocessor.writePrefix(PdePreprocessor.java:142) at processing.app.Sketch.preprocess(Sketch.java:1430) at processing.app.Sketch.preprocess(Sketch.java:1345) at processing.app.Sketch.build(Sketch.java:1624) at processing.app.Sketch.exportApplet(Sketch.java:1655) at processing.app.Sketch.exportApplet(Sketch.java:1641) at processing.app.Editor$DefaultExportHandler.run(Editor.java:2521) at java.lang.Thread.run(Thread.java:619) processing.app.debug.RunnerException: Build folder disappeared or could not be written at processing.app.Sketch.preprocess(Sketch.java:1437) at processing.app.Sketch.preprocess(Sketch.java:1345) at processing.app.Sketch.build(Sketch.java:1624) at processing.app.Sketch.exportApplet(Sketch.java:1655) at processing.app.Sketch.exportApplet(Sketch.java:1641) at processing.app.Editor$DefaultExportHandler.run(Editor.java:2521) at java.lang.Thread.run(Thread.java:619) Here's the example file: /* Grove PIR Motion Sensor (Passive Infrared) The following sketch demonstrates a simple application of sensing motion. When someone moves in the sensor's detecting range, it will output HIGH through its SIG pin and the LED will turn on. Otherwise, it will output LOW. Then you can use it to detect the motion of people. The circuit: * Grove PIR Motion Sensor attached to Pin 7 (J12 plug on Grove Base BoosterPack) * Note: Position the Motion Sensor's jumper on N_Retrig to ensure the light stays on while motion is present This example code is in the public domain. http://www.seeedstudio.com/depot/Grove-PIR-Motion-Sensor-p-802.html */ /* Macro Define */ #define PIR_MOTION_SENSOR 7 /* sig pin of the PIR sensor */ #define LED RED_LED /* LED */ /* the setup() method runs once, when the sketch starts */ void setup() { pinMode(PIR_MOTION_SENSOR, INPUT); /* declare the sig pin as an INPUT */ pinMode(LED, OUTPUT); /* declare the LED pin as an OUTPUT */ digitalWrite(LED, LOW); } /* the loop() method runs over and over again */ void loop() { if(isMotionDetected()) { digitalWrite(LED, HIGH); /* if we detect movement, turn on the LED */ } else { digitalWrite(LED, LOW); /* no movement, turn off the light */ } } /* check if motion has been detected */ boolean isMotionDetected() { int sensor_val = digitalRead(PIR_MOTION_SENSOR); /* read sig pin */ if(sensor_val == HIGH) { return true; /* motion detected */ } else { return false; /* no motion detected */ } }
  23. canooski

    SPI Not Working

    I have a Dig Pot the TPL0501 by Texas Instruments that I am trying to control with a micro controller. Link Here: http://www.ti.com/lit/ds/slis136a/slis136a.pdf I have been able to successfully control this with my CC3200 and the output signals look like Photo 1 attatched. I have since decided I want to do this with my MSP432 but I am not able to get it to work. The same code should work for each I assume. The output signals I am getting for the MSP432 are shown in photo 2. I have tried changing the mode but nothing seems to help. Any ideas? My code is listed below: #include <SPI.h> const int SS = 18; uint8_t value = 150; void setup() { pinMode(SS, OUTPUT); SPI.begin(); digitalWrite(SS, HIGH); SPI.setBitOrder(MSBFIRST); SPI.setDataMode(SPI_MODE3); SPI.setClockDivider(SPI_CLOCK_DIV32); } void loop() { digitalPotWrite(value); delay(100); } int digitalPotWrite(int x) { digitalWrite(SS, LOW); SPI.transfer(x); digitalWrite(SS, HIGH); }
  24. Hi All, I have a problem with the watchdog timer reset. I am using Energia with a CC3200 on a custom board but the same issue occurs with a Launchpad. I have cut down the code to demonstrate the problem it is part of a much larger project which has a process control element and needs a watchdog timer. I have cobbled the demo together from all over the place so there are many different coding styles (smells) used - sorry It is spread over 2 tabs The full project has 30. From my reading, the reset functions are unreliable so TI suggests, test if the system has recovered from a watchdog reset then hibernate the CC3200. Then wake it up shortly after to ensure a clean reset. This seems to work until you connect to a network. I have tried to exit the network connection gracefully but I might have missed a step, my knowledge of the underlying network stuff is not so good. The demo code started from the scan network demo that installs with Energia. The watchdog stuff comes from the TI SDK. When recovering from the reset the program or processor hangs when you try to run WiFiInit() but not all the time. I have tried different delays in different places to let the Network processor catch up but no success This program is set up to continually time out the watchdog so there is no need to tell me that I am not servicing the watchdog. It would be great if someone can offer some insight into how to solve this Trevor Tab named WatchdogTest #include <WiFi.h> #include <WiFiClient.h> #include <WiFiServer.h> #include <WiFiUdp.h> #include "driverlib\prcm.h" #define debug 1 #define Buzzer RED_LED // GPIO24 pin 17 #define BEEP 100 unsigned long ulResetCause; // moved to wdt.ino int WiFiDisconnectErr; uint8_t watchdogResetFlag; uint8_t watchdogIntClearFlag; uint32_t g_ulWatchdogCycles=0; uint32_t g_bFeedWatchdog=1; // your network name also called SSID char ssid[33] = "YourSSID"; // your network password char password[65] = "YourPassword"; void setup() { pinMode(Buzzer,OUTPUT); // for the purpposes of this demo the buzzer is redirected to the red LED on the launchpad board digitalWrite(Buzzer, LOW); //sound a chirp on the buzzer digitalWrite(Buzzer, HIGH); delay (BEEP); digitalWrite(Buzzer, LOW); Serial.begin(115200); Serial.println("Ok..."); recoverFromWatchdog(); wdt(); WiFi.init(); Serial.println(WiFi.firmwareVersion()); // Print WiFi MAC address: printMacAddress(); // scan for existing networks: Serial.println("Scanning available networks..."); listNetworks(); // attempt to connect to Wifi network: if (debug)Serial.print("Attempting to connect to Network named: "); // print the network name (SSID); if (debug)Serial.println(ssid); // Connect to WPA/WPA2 network. Change this line if using open or WEP network: WiFi.begin(ssid, password); while ( WiFi.status() != WL_CONNECTED) { // print dots while we wait to connect if (debug)Serial.print("."); delay(300); } if (debug)Serial.println("\nYou're connected to the network"); if (debug)Serial.println("Waiting for an ip address"); while (WiFi.localIP() == INADDR_NONE) { // print dots while we wait for an ip addresss if (debug)Serial.print("."); delay(300); } // you're connected now, so print out the status printWifiStatus(); } void loop() { uint32_t slowClockVal; if (watchdogResetFlag) { watchdogResetFlag =0; if (WiFi._connecting) { WiFiDisconnectErr = WiFi.disconnect(); Serial.println(WiFiDisconnectErr); delay(50); WiFiDisconnectErr = WiFi.disconnect(); Serial.println(WiFiDisconnectErr); delay(50); } } if (watchdogIntClearFlag) { watchdogIntClearFlag =0; Serial.print("Clear WD int "); Serial.println(g_ulWatchdogCycles); Serial.print("Slow Clock Value ....... "); slowClockVal = (uint32_t)PRCMSlowClkCtrGet(); Serial.println(slowClockVal); digitalWrite(Buzzer, HIGH); delay (BEEP); digitalWrite(Buzzer, LOW); } } void printMacAddress() { // the MAC address of your Wifi byte mac[6]; // print your MAC address: WiFi.macAddress(mac); Serial.print("MAC: "); Serial.print(mac[5], HEX); Serial.print(":"); Serial.print(mac[4], HEX); Serial.print(":"); Serial.print(mac[3], HEX); Serial.print(":"); Serial.print(mac[2], HEX); Serial.print(":"); Serial.print(mac[1], HEX); Serial.print(":"); Serial.println(mac[0], HEX); } void listNetworks() { // scan for nearby networks: Serial.println("** Scan Networks **"); int numSsid = WiFi.scanNetworks(); if (numSsid == -1) { Serial.println("Couldn't get a wifi connection"); while (true); } // print the list of networks seen: Serial.print("number of available networks:"); Serial.println(numSsid); // print the network number and name for each network found: for (int thisNet = 0; thisNet < numSsid; thisNet++) { Serial.print(thisNet); Serial.print(") "); Serial.print(WiFi.SSID(thisNet)); Serial.print("\tSignal: "); Serial.print(WiFi.RSSI(thisNet)); Serial.print(" dBm"); Serial.print("\tEncryption: "); printEncryptionType(WiFi.encryptionType(thisNet)); } } void printEncryptionType(int thisType) { // read the encryption type and print out the name: switch (thisType) { case ENC_TYPE_WEP: Serial.println("WEP"); break; case ENC_TYPE_TKIP: Serial.println("WPA"); break; case ENC_TYPE_CCMP: Serial.println("WPA2"); break; case ENC_TYPE_NONE: Serial.println("None"); break; case ENC_TYPE_AUTO: Serial.println("Auto"); break; } } void printWifiStatus(void) { // print the SSID of the network you're attached to: if (debug)Serial.print("Network Name: "); if (debug)Serial.println(WiFi.SSID()); // print your WiFi shield's IP address: IPAddress ip = WiFi.localIP(); if (debug)Serial.print("IP Address: "); if (debug)Serial.println(ip); } Tab named wdt #include "driverlib\wdt.h" #include "driverlib\utils.h" #include "driverlib\prcm.h" //unsigned long ulResetCause; void recoverFromWatchdog(void) { // This is here to clean up after a watchdog reset // Get the reset cause // ulResetCause = PRCMSysResetCauseGet(); // // If watchdog triggered reset request hibernate // to clean boot the system // if( ulResetCause == PRCM_WDT_RESET ) { HIBEntrePreamble(); MAP_PRCMOCRRegisterWrite(0,1); MAP_PRCMHibernateWakeupSourceEnable(PRCM_HIB_SLOW_CLK_CTR); MAP_PRCMHibernateIntervalSet(330); MAP_PRCMHibernateEnter(); } } void wdt(void) // this is the system watchdog { MAP_PRCMPeripheralClkEnable(PRCM_WDT, PRCM_RUN_MODE_CLK); MAP_WatchdogUnlock(WDT_BASE); MAP_WatchdogIntRegister(WDT_BASE,WatchdogIntHandler); MAP_WatchdogReloadSet(WDT_BASE,40000000*5); //35 seconds 40000000 is half the clock frequency 80 MHz /2 MAP_WatchdogEnable(WDT_BASE); } void wdtReset(void) // this is the software reset { MAP_WatchdogUnlock(WDT_BASE); MAP_WatchdogReloadSet(WDT_BASE,40000000 * 2); // 2 seconds give the system time to close network connections } //***************************************************************************** // //! Mandatory Configuration to put the PM into safe state before entering hibernate //! //! \param None //! //! \return None // //***************************************************************************** static inline void HIBEntrePreamble() { HWREG(0x400F70B8) = 1; UtilsDelay(800000/5);//delay(2); HWREG(0x400F70B0) = 1; UtilsDelay(800000/5);//delay(2); HWREG(0x4402E16C) |= 0x2; UtilsDelay(800);//delay(1); HWREG(0x4402F024) &= 0xF7FFFFFF; } //***************************************************************************** // //! The interrupt handler for the watchdog timer //! //! \param None //! //! \return None // //***************************************************************************** void WatchdogIntHandler(void) { // // If we have been told to stop feeding the watchdog, return immediately // without clearing the interrupt. This will cause the system to reset // next time the watchdog interrupt fires. // if(!g_bFeedWatchdog) { return; } // // After 10 interrupts, switch On LED6 to indicate system reset // and don't clear watchdog interrupt which causes system reset // if(g_ulWatchdogCycles >= 3) { // if (client)client.stop(); watchdogResetFlag++; MAP_UtilsDelay(800000); return; } // // Clear the watchdog interrupt. // MAP_WatchdogIntClear(WDT_BASE); watchdogIntClearFlag++; // // Increment our interrupt counter. // g_ulWatchdogCycles++; }
  25. Hello all, I'm having trouble getting my digital pot to respond to the CC3200. Could someone please take a look at my code and let me know where I'm going wrong? Thanks. DataSheet for the digital pot; http://www.ti.com/product/tpl0501-100 #include <SPI.h> const int SS = 8; uint8_t value; int volts = 0; void setup() { Serial.begin(9600); pinMode(SS, OUTPUT); SPI.begin(); delay(100); } void loop() { for(value = 0; value < 256; value += 20) { digitalWrite(SS, LOW); delay(10); SPI.transfer(value); delay(10); digitalWrite(SS, HIGH); delay(100); } }