Jump to content

led

Members
  • Content Count

    13
  • Joined

  • Last visited

  1. @awhitehead @bluehash i guess this is the right place to discuss about energia libraries for exosite, currently i'm working with cc3200 launchpad, can u let me know is there any energia libraries available for exosite ?? (i tried using ccs code and binary flash ,its working but i would like to use energia in my project )
  2. @@Fred thanks for your reply,i'll try it today and update the information by tomorrow
  3. @@Fred i have used enable pin and spi but i havent used interrupt ..please tell me, should using interrupt is mandatory ..if so ,please tell me clearly about how to use this interrupt.. thank you so much for your immense help
  4. @spirilis thanks for your help i wrote a program in energia to find ISO15693 by taking this pdf as reference (http://dangerousprototypes.com/forum/download/file.php?id=10030) #include<SPI.h> #define enable P2_2 #define CS P2_1 #define interrupt P2_0 #define CS_LOW digitalWrite(CS,LOW) #define CS_HIGH digitalWrite(CS,HIGH) byte temp = 0; volatile int flag = LOW; //#define LED RED_LED void setup() { // put your setup code here, to run once: Serial.begin(9600); pinMode(CS,OUTPUT); pinMode(enable,OUTPUT); digitalWrite(enable,HIGH); pinMode(interrupt, INPUT_PULLDOWN); SPI.setDataMode(SPI_MODE1); SPI.setClockDivider(SPI_CLOCK_DIV8); SPI.setBitOrder(MSBFIRST); attachInterrupt(interrupt,function,RISING); SPI.begin(); } void loop() { // put your main code here, to run repeatedly: //digitalWrite(LED,LOW); flag=LOW; Serial.print("started"); CS_HIGH; let(); } void let(void) { CS_LOW; SPI.transfer(0x83);//reset CS_HIGH; CS_LOW; SPI.transfer(0x09); //sys_clk SPI.transfer(0x31);//100% osk and 13.5MHZ CS_HIGH; CS_LOW; SPI.transfer(0x01); //iso control SPI.transfer(0x02); CS_HIGH; CS_LOW; SPI.transfer(0x40);//turn rf on SPI.transfer(0x00); CS_HIGH; CS_LOW; SPI.transfer(0x00); SPI.transfer(0x20); CS_HIGH; CS_LOW; SPI.transfer(0x40); SPI.transfer(0x00); CS_HIGH; CS_LOW; SPI.transfer(0x8F); ///Inventory Command 8 Bytes SPI.transfer(0x91); SPI.transfer(0x3D); SPI.transfer(0x00); SPI.transfer(0x30); SPI.transfer(0x26); SPI.transfer(0x01); SPI.transfer(0x00); CS_HIGH; delay(2); CS_LOW; SPI.transfer(0x6C); //read&clear IRQ SPI.transfer(0x00); SPI.transfer(0x00); CS_HIGH; CS_LOW; SPI.transfer(0x5C); //read FIFO status SPI.transfer(0x00); CS_HIGH; CS_LOW; SPI.transfer(0x7F);//read FIFO SPI.transfer(0x00); SPI.transfer(0x00); Serial.println(SPI.transfer(0x00),HEX); Serial.println(SPI.transfer(0x00),HEX); Serial.println(SPI.transfer(0x00),HEX); Serial.println(SPI.transfer(0x00),HEX); Serial.println(SPI.transfer(0x00),HEX); Serial.println(SPI.transfer(0x00),HEX); Serial.println(SPI.transfer(0x00),HEX); Serial.println(SPI.transfer(0x00),HEX); CS_HIGH; delay(10); CS_LOW; SPI.transfer(0x6C); //reset IRQ SPI.transfer(0x00); temp=SPI.transfer(0x00); CS_HIGH; CS_LOW; SPI.transfer(0x5C); //FIFO SPI.transfer(0x00); CS_HIGH; CS_LOW; SPI.transfer(0x8F); CS_HIGH; CS_LOW; SPI.transfer(0x4F); //RSSI Serial.println(SPI.transfer(0x00),HEX); CS_HIGH; } void function() { Serial.println("interrupt raised"); flag = LOW; } but i'm getting completely zeros (0....) in serial monitor..i suspect there might be an error in using interrupts..kindly please correct me if i'm wrong in any where..
  5. @@Fred i have no issues with the pin configuration.the only problem is timmers and its registers..there is bcsctl and dcoctl in msp430 , i dont how to replace them in cc3200 can u please clarify me regarding this, in "Modulator and SYS_CLK Control Register (0x09)" what should be the value to be written in TRF7970_demo---> i found ;0x01 it means 100%ask and no sysclk in some pdfs ---> i found ;0x31 it means 100%ask and 13.5MHZ default clock should we have to provide 13.5MHZ from microcontroller or it self (TRF7970) has an internal 13.5MHZ clock please help me..
  6. @@Fred in TRF7970_demo what is the importance of making DCO to 8MHZ..please explain it
  7. @@Fred ur my last hope please help me to solve this problem in "Modulator and SYS_CLK Control Register (0x09)" what should be the value to be written in TRF7970_demo---> i found ;0x01 it means 100%ask and no sysclk in some pdfs ---> i found ;0x31 it means 100%ask and 13.5MHZ default clock should we have to provide 13.5MHZ from microcontroller or it self (TRF7970) has an internal 13.5MHZ clock please help me..
  8. @@Fred thanks for your reply i have tried TRF7970ABP_Demo code with G2553 in CCS but i would like to use it with CC3200 LP .I tried to change the headers but to my knowledge its a big challenge .please can u suggest me any way that TRF7970 will works with CC3200 (no issues if it works in CCS )
  9. @@Oppa do u have program which works in energia ...
  10. Hi @@Fred, i got Trf7970A last week i'm trying to work in Energia with msp430g2553 .the program given by the Texas instrument is working well in CCS (i tried it) but i want to work with that in energia and i have written the following code by taking this pdf as refrence (http://dangerousprototypes.com/forum/download/file.php?id=10030) but its not working ..please help me ..looking forward for your help .thanks in advance *******FOR ISO1443A nfc tag**** #include<SPI.h> #define enable P2_2 #define CS P2_1 #define interrupt P2_0 #define CS_ENABLED digitalWrite(CS,LOW) #define CS_DISABLED digitalWrite(CS,HIGH) void setup() { // put your setup code here, to run once: pinMode(CS,OUTPUT); pinMode(enable,OUTPUT); digitalWrite(enable,LOW); pinMode(interrupt,INPUT); SPI.setDataMode(SPI_MODE1); SPI.setClockDivider(SPI_CLOCK_DIV8); SPI.setBitOrder(MSBFIRST); SPI.begin(); Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: let(); } void let(void) { CS_ENABLED; Write(0x83); CS_DISABLED; CS_ENABLED; Write(0x09); Write(0x31); CS_DISABLED; CS_ENABLED; Read(0x49); CS_DISABLED; CS_ENABLED; Write(0x01); Write(0x88); CS_DISABLED; CS_ENABLED; Read(0x41); CS_DISABLED; CS_ENABLED; Write(0x00); Write(0x20); CS_DISABLED; CS_ENABLED; Read(0x40); CS_DISABLED; CS_ENABLED; Write(0x01); Write(0x88); CS_DISABLED; CS_ENABLED; Write(0x8F); Write(0x90); Write(0x3D); Write(0x00); Write(0x0F); Write(0x26); CS_DISABLED; delay(100); CS_ENABLED; Write(0x6C); Read(0xC0); Read(0x3E); CS_DISABLED; CS_ENABLED; Write(0x5C); Read(0x02); CS_DISABLED; CS_ENABLED; Write(0x7F); Read(0x04); Read(0x00); CS_DISABLED; CS_ENABLED; Write(0x8F); CS_DISABLED; CS_ENABLED; SPI.transfer(0x4F); Read(0x7F); CS_DISABLED; delay(20); CS_ENABLED; Write(0x8F); Write(0x90); Write(0x3D); Write(0x00); Write(0x20); Write(0x93); Write(0x20); CS_DISABLED; delay(5); CS_ENABLED; Write(0x6C); Read(0xC0); Read(0x3E); CS_DISABLED; CS_ENABLED; Write(0x5C); Read(0x05); CS_DISABLED; CS_ENABLED; Write(0x7F); Read(0xCD); Read(0x88); Read(0x77); Read(0x66); Read(0x00); delay(10); CS_DISABLED; CS_ENABLED; Write(0x6C); Read(0x00); Read(0x3E); CS_DISABLED; CS_ENABLED; Write(0x8F); CS_DISABLED; CS_ENABLED; Write(0x4F); Read(0x7F); CS_DISABLED; } void Read(byte data ) { Serial.print(SPI.transfer(data)); } void Write(byte data) { SPI.transfer( data); }
  11. sorry *small_correction* it will be digitalWrite(enable,HIGH); instead digitalWrite(enable,LOW);
  12. hi,frnds i would like to work with cc3200 and nfcboosterpack trf7970a in energia IDE .Does any one have energia library for TRF7970A boosterpack. i have attached a pdf which helps to make a library for iso1443a and iso5693 i tried this code for msp430g2553 but its not working please any one can help me TestTRF7970A_with_BPV3 (1).pdf nfcpin.pdf #include<SPI.h> #define enable P2_2 #define CS P2_1 #define interrupt P2_0 #define CS_ENABLED digitalWrite(CS,LOW) #define CS_DISABLED digitalWrite(CS,HIGH) void setup() { // put your setup code here, to run once: pinMode(CS,OUTPUT); pinMode(enable,OUTPUT); digitalWrite(enable,LOW); pinMode(interrupt,INPUT); SPI.setDataMode(SPI_MODE1); SPI.setClockDivider(SPI_CLOCK_DIV8); SPI.setBitOrder(MSBFIRST); SPI.begin(); Serial.begin(9600); } void loop() { // put your main code here, to run repeatedly: let(); } void let(void) { CS_ENABLED; Write(0x83); CS_DISABLED; CS_ENABLED; Write(0x09); Write(0x31); CS_DISABLED; CS_ENABLED; Read(0x49); CS_DISABLED; CS_ENABLED; Write(0x01); Write(0x88); CS_DISABLED; CS_ENABLED; Read(0x41); CS_DISABLED; CS_ENABLED; Write(0x00); Write(0x20); CS_DISABLED; CS_ENABLED; Read(0x40); CS_DISABLED; CS_ENABLED; Write(0x01); Write(0x88); CS_DISABLED; CS_ENABLED; Write(0x8F); Write(0x90); Write(0x3D); Write(0x00); Write(0x0F); Write(0x26); CS_DISABLED; delay(100); CS_ENABLED; Write(0x6C); Read(0xC0); Read(0x3E); CS_DISABLED; CS_ENABLED; Write(0x5C); Read(0x02); CS_DISABLED; CS_ENABLED; Write(0x7F); Read(0x04); Read(0x00); CS_DISABLED; CS_ENABLED; Write(0x8F); CS_DISABLED; CS_ENABLED; SPI.transfer(0x4F); Read(0x7F); CS_DISABLED; delay(20); CS_ENABLED; Write(0x8F); Write(0x90); Write(0x3D); Write(0x00); Write(0x20); Write(0x93); Write(0x20); CS_DISABLED; delay(5); CS_ENABLED; Write(0x6C); Read(0xC0); Read(0x3E); CS_DISABLED; CS_ENABLED; Write(0x5C); Read(0x05); CS_DISABLED; CS_ENABLED; Write(0x7F); Read(0xCD); Read(0x88); Read(0x77); Read(0x66); Read(0x00); delay(10); CS_DISABLED; CS_ENABLED; Write(0x6C); Read(0x00); Read(0x3E); CS_DISABLED; CS_ENABLED; Write(0x8F); CS_DISABLED; CS_ENABLED; Write(0x4F); Read(0x7F); CS_DISABLED; } void Read(byte data ) { Serial.print(SPI.transfer(data)); } void Write(byte data) { SPI.transfer( data); }
  13. friends i'm trying to work with CC3200 with NFC boosterpack by SPI communication.i have downloaded a file (http://www.ti.com/lit/zip/sloc297) .which is compatible with msp430g2553. since i'm not professional enough to change the headers and libraries to work with cc3200. i need help from you guys to make it compatible with cc3200. any kind of help towards this is welcome thanks in advancesloc297.zip
×
×
  • Create New...