![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ADF7023 Mbed
main.cpp@1:8aeaa0b3c4e4, 2015-07-01 (annotated)
- Committer:
- dheerajmpai23
- Date:
- Wed Jul 01 19:08:16 2015 +0000
- Revision:
- 1:8aeaa0b3c4e4
- Parent:
- 0:27502d5825f7
- Child:
- 2:3ef54f214a36
Trial :: Rolling_Interrupt with different Data like Gen data
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dheerajmpai23 | 0:27502d5825f7 | 1 | #include "mbed.h" |
dheerajmpai23 | 0:27502d5825f7 | 2 | #include <iostream> |
dheerajmpai23 | 0:27502d5825f7 | 3 | using namespace std; |
dheerajmpai23 | 0:27502d5825f7 | 4 | #include <bitset> |
dheerajmpai23 | 0:27502d5825f7 | 5 | |
dheerajmpai23 | 0:27502d5825f7 | 6 | #define ENDL "\r" << endl; |
dheerajmpai23 | 0:27502d5825f7 | 7 | #define START_ADDRESS 0x020; |
dheerajmpai23 | 0:27502d5825f7 | 8 | #define PI 3.14 |
dheerajmpai23 | 0:27502d5825f7 | 9 | SPI adf(PTA16, PTA17, PTA15); |
dheerajmpai23 | 0:27502d5825f7 | 10 | //MOSI, MISO, CLOCK |
dheerajmpai23 | 0:27502d5825f7 | 11 | |
dheerajmpai23 | 0:27502d5825f7 | 12 | DigitalOut CS(D10); |
dheerajmpai23 | 0:27502d5825f7 | 13 | Serial PC(USBTX, USBRX); |
dheerajmpai23 | 0:27502d5825f7 | 14 | DigitalOut ledr(LED_RED); |
dheerajmpai23 | 0:27502d5825f7 | 15 | InterruptIn IRQ(D8); |
dheerajmpai23 | 0:27502d5825f7 | 16 | |
dheerajmpai23 | 0:27502d5825f7 | 17 | int j = 0; |
dheerajmpai23 | 0:27502d5825f7 | 18 | int k = 0; |
dheerajmpai23 | 0:27502d5825f7 | 19 | int irq1=0; |
dheerajmpai23 | 1:8aeaa0b3c4e4 | 20 | //FF 00 Gen data FF 00 |
dheerajmpai23 | 1:8aeaa0b3c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0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0x7E,0x7E,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0x7E,0x7E,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0x7E,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xCC,0xB3,0xB2,0x5B,0x96,0x38,0x71,0x96,0x54,0xE2,0x4A,0x7F,0xC9,0xB7,0x1E,0x56,0x09,0x30,0x18,0x5A,0x84,0xFA,0xC1,0x9D,0xA6,0x6A,0x17,0x50,0x6F,0xD4,0x34,0x1D,0xF0,0xE0,0xE2,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x78,0xC9,0x9A,0x09,0xE2,0x34,0xF9,0x39,0x61,0x36,0x9C,0xC2,0x98,0xB9,0x54,0xC0,0xDC,0xE6,0x90,0xF6,0xF6,0x88,0xD1,0xA5,0x5A,0x75,0x83,0x78,0x08,0xD6,0x9D,0xDE,0xB8,0x58,0xD4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x13,0x3F,0x78,0xD9,0x4E,0xB7,0xE8,0xD6,0x0D,0x1E,0xF1,0xC4,0xB9,0xAB,0x90,0x39,0x6A,0x9E,0x8A,0xB8,0xC9,0xAF,0x5E,0x85,0x66,0xBF,0x4E,0xB3,0xD3,0x54,0x9B,0x7D,0xA3,0x3A,0x1A,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x81,0x83,0x7B,0x88,0x8A,0xAB,0x31,0x91,0x8F,0xA0,0x91,0x05,0x17,0xC2,0xD2,0xB9,0xC1,0xEE,0x97,0xCE,0x66,0xE9,0x8A,0xA4,0xBC,0xB1,0xFC,0xCB,0x3B,0x24,0x6E,0x5B,0x87,0x19,0x64,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x59,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x58,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x59,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x58,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x7E,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0x7E,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xCC,0xB3,0xB2,0x5B,0x96,0x38,0x71,0x96,0x54,0xE2,0x4A,0x7F,0xC9,0xB7,0x1E,0x56,0x09,0x30,0x18,0x5A,0x84,0xFA,0xC1,0x9D,0xA6,0x6A,0x17,0x50,0x6F,0xD4,0x34,0x1D,0xF0,0xE0,0xE2,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x78,0xC9,0x9A,0x09,0xE2,0x34,0xF9,0x39,0x61,0x36,0x9C,0xC2,0x98,0xB9,0x54,0xC0,0xDC,0xE6,0x90,0xF6,0xF6,0x88,0xD1,0xA5,0x5A,0x75,0x83,0x78,0x08,0xD6,0x9D,0xDE,0xB8,0x58,0xD4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0x13,0x3F,0x78,0xD9,0x4E,0xB7,0xE8,0xD6,0x0D,0x1E,0xF1,0xC4,0xB9,0xAB,0x90,0x39,0x6A,0x9E,0x8A,0xB8,0xC9,0xAF,0x5E,0x85,0x66,0xBF,0x4E,0xB3,0xD3,0x54,0x9B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,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}; |
dheerajmpai23 | 1:8aeaa0b3c4e4 | 22 | //Gen 00 Gen |
dheerajmpai23 | 1:8aeaa0b3c4e4 | 23 | //unsigned int data[]={0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x0F,0x20,0xE5,0xEE,0x00,0xEB,0x3D,0x35,0x66,0xDC,0xDA,0x33,0xA1,0x80,0x62,0xB7,0xB8,0x88,0x8A,0xCE,0x99,0x18,0xFA,0x24,0x42,0xD1,0x7C,0x2D,0x0E,0x72,0x9E,0xE9,0x7C,0xF9,0xBA,0x18,0xAA,0x4B,0xEC,0x7C,}; |
dheerajmpai23 | 1:8aeaa0b3c4e4 | 24 | //Total Gen Data without FF 00 |
dheerajmpai23 | 1:8aeaa0b3c4e4 | 25 | unsigned int data[]={0x01,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x59,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x58,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x0F,0x20,0xE5,0xEE,0x00,0x7C,0xA8,0xFA,0xF8,0x20,0x65,0xE7,0xFD,0x2E,0xFE,0x19,0xB8,0x3B,0x73,0xFE,0x78,0x8D,0x40,0xF0,0xC2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0x79,0xF2,0x70,0xDE,0x38,0x8E,0x08,0x68,0xBD,0x88,0x1B,0xBC,0x40,0xE7,0x14,0x3B,0xD0,0x9A,0x1F,0x62,0xAA,0xD8,0x53,0x67,0x10,0x89,0x0F,0xDF,0x43,0x01,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x59,0x97,0x4C,0x18,0x22,0xEF,0x9F,0x34,0x58,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x65,0xD3,0x06,0x08,0xBB,0xE7,0xCD,0x16,0x0F,0x20,0xE5,0xEE,0x00,0x7C,0xA8,0xFA,0xF8,0x20,0x65,0xE7,0xFD,0x2E,0xFE,0x19,0xB8,0x3B,0x73,0xFE,0x78,0x8D,0x40,0xF0,0xC2,0x46,0xE5,0xA0,0x73,0x2A,0x0C,0x8B,0x02,0x7F,0xD4,0xD2,0x96,0x37,0x05,0x0F,0x20,0xE5,0xEE,0x00,0xD7,0x22,0x9C,0xDD,0xCC,0x79,0xF2,0x70,0xDE,0x38,0x8E,0x08,0x68,0xBD,0x88,0x1B,0xBC,0x40,0xE7,0x14,0x3B,0xD0,0x9A,0x1F,0x62,0xAA,0xD8,0x53,0x67,0x10,0x89,0x0F,0xDF,0x43}; |
dheerajmpai23 | 0:27502d5825f7 | 26 | #define SPI_NOP 0xFF |
dheerajmpai23 | 0:27502d5825f7 | 27 | /***********************************************************************************/ |
dheerajmpai23 | 0:27502d5825f7 | 28 | void bbram_write() |
dheerajmpai23 | 0:27502d5825f7 | 29 | { |
dheerajmpai23 | 0:27502d5825f7 | 30 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 31 | adf.write(0xB0);//PHY_OFF |
dheerajmpai23 | 0:27502d5825f7 | 32 | wait_ms(2); |
dheerajmpai23 | 0:27502d5825f7 | 33 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 34 | |
dheerajmpai23 | 0:27502d5825f7 | 35 | // Write bbram |
dheerajmpai23 | 0:27502d5825f7 | 36 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 37 | adf.write(0x19); |
dheerajmpai23 | 0:27502d5825f7 | 38 | adf.write(0x00); |
dheerajmpai23 | 1:8aeaa0b3c4e4 | 39 | adf.write(0x40); |
dheerajmpai23 | 0:27502d5825f7 | 40 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 41 | |
dheerajmpai23 | 0:27502d5825f7 | 42 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 43 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 44 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 45 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 46 | |
dheerajmpai23 | 0:27502d5825f7 | 47 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 48 | adf.write(0x33); |
dheerajmpai23 | 0:27502d5825f7 | 49 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 50 | adf.write(0xF4); |
dheerajmpai23 | 0:27502d5825f7 | 51 | |
dheerajmpai23 | 0:27502d5825f7 | 52 | adf.write(0xC2); |
dheerajmpai23 | 0:27502d5825f7 | 53 | adf.write(0x10); |
dheerajmpai23 | 0:27502d5825f7 | 54 | adf.write(0xC0); |
dheerajmpai23 | 0:27502d5825f7 | 55 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 56 | |
dheerajmpai23 | 0:27502d5825f7 | 57 | adf.write(0x30); |
dheerajmpai23 | 0:27502d5825f7 | 58 | adf.write(0x31); |
dheerajmpai23 | 0:27502d5825f7 | 59 | adf.write(0x07); |
dheerajmpai23 | 0:27502d5825f7 | 60 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 61 | |
dheerajmpai23 | 0:27502d5825f7 | 62 | adf.write(0x01); |
dheerajmpai23 | 0:27502d5825f7 | 63 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 64 | adf.write(0x7F); |
dheerajmpai23 | 0:27502d5825f7 | 65 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 66 | |
dheerajmpai23 | 0:27502d5825f7 | 67 | adf.write(0x0B); |
dheerajmpai23 | 0:27502d5825f7 | 68 | adf.write(0x37); |
dheerajmpai23 | 0:27502d5825f7 | 69 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 70 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 71 | |
dheerajmpai23 | 0:27502d5825f7 | 72 | adf.write(0x40); |
dheerajmpai23 | 0:27502d5825f7 | 73 | adf.write(0x0C); |
dheerajmpai23 | 0:27502d5825f7 | 74 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 75 | adf.write(0x05); |
dheerajmpai23 | 0:27502d5825f7 | 76 | |
dheerajmpai23 | 0:27502d5825f7 | 77 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 78 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 79 | adf.write(0x18); |
dheerajmpai23 | 0:27502d5825f7 | 80 | adf.write(0x12); |
dheerajmpai23 | 0:27502d5825f7 | 81 | |
dheerajmpai23 | 0:27502d5825f7 | 82 | adf.write(0x34); |
dheerajmpai23 | 0:27502d5825f7 | 83 | adf.write(0x56); |
dheerajmpai23 | 0:27502d5825f7 | 84 | adf.write(0x10); |
dheerajmpai23 | 0:27502d5825f7 | 85 | adf.write(0x10); |
dheerajmpai23 | 0:27502d5825f7 | 86 | |
dheerajmpai23 | 0:27502d5825f7 | 87 | adf.write(0xC4); // Different |
dheerajmpai23 | 0:27502d5825f7 | 88 | adf.write(0x14); |
dheerajmpai23 | 0:27502d5825f7 | 89 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 90 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 91 | |
dheerajmpai23 | 0:27502d5825f7 | 92 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 93 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 94 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 95 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 96 | |
dheerajmpai23 | 0:27502d5825f7 | 97 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 98 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 99 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 100 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 101 | |
dheerajmpai23 | 0:27502d5825f7 | 102 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 103 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 104 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 105 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 106 | |
dheerajmpai23 | 0:27502d5825f7 | 107 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 108 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 109 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 110 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 111 | |
dheerajmpai23 | 0:27502d5825f7 | 112 | adf.write(0x04); |
dheerajmpai23 | 0:27502d5825f7 | 113 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 114 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 115 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 116 | |
dheerajmpai23 | 0:27502d5825f7 | 117 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 118 | adf.write(0x00); |
dheerajmpai23 | 0:27502d5825f7 | 119 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 120 | wait(1); |
dheerajmpai23 | 0:27502d5825f7 | 121 | |
dheerajmpai23 | 0:27502d5825f7 | 122 | } |
dheerajmpai23 | 0:27502d5825f7 | 123 | |
dheerajmpai23 | 0:27502d5825f7 | 124 | |
dheerajmpai23 | 0:27502d5825f7 | 125 | /******************************************************************************************/ |
dheerajmpai23 | 0:27502d5825f7 | 126 | |
dheerajmpai23 | 0:27502d5825f7 | 127 | void initiate(void){ |
dheerajmpai23 | 0:27502d5825f7 | 128 | |
dheerajmpai23 | 0:27502d5825f7 | 129 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 130 | adf.write(0xFF); |
dheerajmpai23 | 0:27502d5825f7 | 131 | adf.write(0xFF); |
dheerajmpai23 | 0:27502d5825f7 | 132 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 133 | wait_ms(2); |
dheerajmpai23 | 0:27502d5825f7 | 134 | |
dheerajmpai23 | 0:27502d5825f7 | 135 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 136 | adf.write(0x08); // TRANSMIT_DATA LENGTH |
dheerajmpai23 | 0:27502d5825f7 | 137 | adf.write(0x14); |
dheerajmpai23 | 0:27502d5825f7 | 138 | adf.write(0x99); |
dheerajmpai23 | 0:27502d5825f7 | 139 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 140 | wait_ms(2); |
dheerajmpai23 | 0:27502d5825f7 | 141 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 142 | adf.write(0x08); // TRANSMIT_DATA LENGTH |
dheerajmpai23 | 0:27502d5825f7 | 143 | adf.write(0x15); |
dheerajmpai23 | 1:8aeaa0b3c4e4 | 144 | adf.write(0x99); |
dheerajmpai23 | 0:27502d5825f7 | 145 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 146 | wait_ms(2); |
dheerajmpai23 | 0:27502d5825f7 | 147 | |
dheerajmpai23 | 0:27502d5825f7 | 148 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 149 | adf.write(0x09); |
dheerajmpai23 | 0:27502d5825f7 | 150 | adf.write(0x24); // TX_BASE ADDRESS 0x20(starting Tx Byte) |
dheerajmpai23 | 0:27502d5825f7 | 151 | adf.write(0x20); |
dheerajmpai23 | 0:27502d5825f7 | 152 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 153 | wait_ms(2); |
dheerajmpai23 | 0:27502d5825f7 | 154 | |
dheerajmpai23 | 0:27502d5825f7 | 155 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 156 | adf.write(0x09); |
dheerajmpai23 | 0:27502d5825f7 | 157 | adf.write(0x37);// BUFFER SIZE 0xE0=224 Bytes 0x137 is adress of buffer size |
dheerajmpai23 | 0:27502d5825f7 | 158 | adf.write(0xE0); |
dheerajmpai23 | 0:27502d5825f7 | 159 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 160 | wait_ms(2); |
dheerajmpai23 | 0:27502d5825f7 | 161 | |
dheerajmpai23 | 0:27502d5825f7 | 162 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 163 | adf.write(0x09); |
dheerajmpai23 | 0:27502d5825f7 | 164 | adf.write(0x36);//BB_Tx_Buffer Signal when Buffer is half filled |
dheerajmpai23 | 0:27502d5825f7 | 165 | adf.write(0x70);//0x70 = 112 >> When Half buffer interrupt is given |
dheerajmpai23 | 0:27502d5825f7 | 166 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 167 | wait_ms(2); |
dheerajmpai23 | 0:27502d5825f7 | 168 | |
dheerajmpai23 | 0:27502d5825f7 | 169 | |
dheerajmpai23 | 0:27502d5825f7 | 170 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 171 | adf.write(0x09); |
dheerajmpai23 | 0:27502d5825f7 | 172 | adf.write(0x39);//BB_Tx_Buffer Signal when Buffer is half filled |
dheerajmpai23 | 0:27502d5825f7 | 173 | adf.write(0x10);//0x70 = 112 >> When Half buffer interrupt is given |
dheerajmpai23 | 0:27502d5825f7 | 174 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 175 | wait_ms(2); |
dheerajmpai23 | 0:27502d5825f7 | 176 | |
dheerajmpai23 | 0:27502d5825f7 | 177 | |
dheerajmpai23 | 0:27502d5825f7 | 178 | |
dheerajmpai23 | 0:27502d5825f7 | 179 | } |
dheerajmpai23 | 0:27502d5825f7 | 180 | |
dheerajmpai23 | 0:27502d5825f7 | 181 | void write_data(void){ |
dheerajmpai23 | 1:8aeaa0b3c4e4 | 182 | cout<<"3"<<ENDL; |
dheerajmpai23 | 0:27502d5825f7 | 183 | // cout<<"irq detected"<<ENDL; |
dheerajmpai23 | 0:27502d5825f7 | 184 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 185 | adf.write(0x0B);//IRQ_SOURCE_Random write //To read CMD = 2B 36 FF FF |
dheerajmpai23 | 0:27502d5825f7 | 186 | adf.write(0x36);//Address : 0x336 |
dheerajmpai23 | 0:27502d5825f7 | 187 | adf.write(0x00);//Put Low |
dheerajmpai23 | 0:27502d5825f7 | 188 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 189 | wait_us(80); |
dheerajmpai23 | 1:8aeaa0b3c4e4 | 190 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 191 | |
dheerajmpai23 | 0:27502d5825f7 | 192 | |
dheerajmpai23 | 0:27502d5825f7 | 193 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 194 | k=0; |
dheerajmpai23 | 0:27502d5825f7 | 195 | if(!j){ |
dheerajmpai23 | 0:27502d5825f7 | 196 | |
dheerajmpai23 | 0:27502d5825f7 | 197 | |
dheerajmpai23 | 0:27502d5825f7 | 198 | adf.write(0x18); |
dheerajmpai23 | 0:27502d5825f7 | 199 | adf.write(0x20); |
dheerajmpai23 | 0:27502d5825f7 | 200 | while(k<=223){ |
dheerajmpai23 | 0:27502d5825f7 | 201 | |
dheerajmpai23 | 0:27502d5825f7 | 202 | adf.write(data[k]); |
dheerajmpai23 | 0:27502d5825f7 | 203 | k++; |
dheerajmpai23 | 0:27502d5825f7 | 204 | } |
dheerajmpai23 | 0:27502d5825f7 | 205 | |
dheerajmpai23 | 0:27502d5825f7 | 206 | } |
dheerajmpai23 | 0:27502d5825f7 | 207 | |
dheerajmpai23 | 0:27502d5825f7 | 208 | else{ |
dheerajmpai23 | 0:27502d5825f7 | 209 | |
dheerajmpai23 | 0:27502d5825f7 | 210 | |
dheerajmpai23 | 0:27502d5825f7 | 211 | if(j%2){ |
dheerajmpai23 | 0:27502d5825f7 | 212 | adf.write(0x18); |
dheerajmpai23 | 0:27502d5825f7 | 213 | adf.write(0x20); |
dheerajmpai23 | 0:27502d5825f7 | 214 | } |
dheerajmpai23 | 0:27502d5825f7 | 215 | |
dheerajmpai23 | 0:27502d5825f7 | 216 | else{ |
dheerajmpai23 | 0:27502d5825f7 | 217 | adf.write(0x18); |
dheerajmpai23 | 0:27502d5825f7 | 218 | adf.write(0x90); |
dheerajmpai23 | 0:27502d5825f7 | 219 | } |
dheerajmpai23 | 0:27502d5825f7 | 220 | |
dheerajmpai23 | 0:27502d5825f7 | 221 | |
dheerajmpai23 | 0:27502d5825f7 | 222 | while(k<=111){ |
dheerajmpai23 | 0:27502d5825f7 | 223 | adf.write(data[(j+1)*112+k]); |
dheerajmpai23 | 0:27502d5825f7 | 224 | k++; |
dheerajmpai23 | 0:27502d5825f7 | 225 | |
dheerajmpai23 | 0:27502d5825f7 | 226 | } |
dheerajmpai23 | 0:27502d5825f7 | 227 | |
dheerajmpai23 | 0:27502d5825f7 | 228 | |
dheerajmpai23 | 0:27502d5825f7 | 229 | |
dheerajmpai23 | 0:27502d5825f7 | 230 | } |
dheerajmpai23 | 0:27502d5825f7 | 231 | j++; |
dheerajmpai23 | 0:27502d5825f7 | 232 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 233 | wait_us(1); |
dheerajmpai23 | 0:27502d5825f7 | 234 | } |
dheerajmpai23 | 0:27502d5825f7 | 235 | |
dheerajmpai23 | 1:8aeaa0b3c4e4 | 236 | void print(void){ |
dheerajmpai23 | 1:8aeaa0b3c4e4 | 237 | |
dheerajmpai23 | 1:8aeaa0b3c4e4 | 238 | cout<<"2"<<ENDL; |
dheerajmpai23 | 1:8aeaa0b3c4e4 | 239 | } |
dheerajmpai23 | 0:27502d5825f7 | 240 | |
dheerajmpai23 | 0:27502d5825f7 | 241 | |
dheerajmpai23 | 0:27502d5825f7 | 242 | |
dheerajmpai23 | 0:27502d5825f7 | 243 | void send_data(void){ |
dheerajmpai23 | 0:27502d5825f7 | 244 | |
dheerajmpai23 | 0:27502d5825f7 | 245 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 246 | adf.write(0xBB); |
dheerajmpai23 | 0:27502d5825f7 | 247 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 248 | wait_ms(2); |
dheerajmpai23 | 0:27502d5825f7 | 249 | |
dheerajmpai23 | 0:27502d5825f7 | 250 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 251 | adf.write(0xFF); |
dheerajmpai23 | 0:27502d5825f7 | 252 | adf.write(0xFF); |
dheerajmpai23 | 0:27502d5825f7 | 253 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 254 | wait_ms(2); |
dheerajmpai23 | 0:27502d5825f7 | 255 | |
dheerajmpai23 | 0:27502d5825f7 | 256 | write_data(); |
dheerajmpai23 | 0:27502d5825f7 | 257 | |
dheerajmpai23 | 0:27502d5825f7 | 258 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 259 | adf.write(0xB1); |
dheerajmpai23 | 0:27502d5825f7 | 260 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 261 | wait_ms(2); |
dheerajmpai23 | 0:27502d5825f7 | 262 | |
dheerajmpai23 | 0:27502d5825f7 | 263 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 264 | adf.write(0xFF); |
dheerajmpai23 | 0:27502d5825f7 | 265 | adf.write(0xFF); |
dheerajmpai23 | 0:27502d5825f7 | 266 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 267 | wait_ms(2); |
dheerajmpai23 | 0:27502d5825f7 | 268 | |
dheerajmpai23 | 0:27502d5825f7 | 269 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 270 | adf.write(0xB5); |
dheerajmpai23 | 0:27502d5825f7 | 271 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 272 | wait_ms(2); |
dheerajmpai23 | 0:27502d5825f7 | 273 | |
dheerajmpai23 | 0:27502d5825f7 | 274 | CS=0; |
dheerajmpai23 | 0:27502d5825f7 | 275 | adf.write(0xFF); |
dheerajmpai23 | 0:27502d5825f7 | 276 | adf.write(0xFF); |
dheerajmpai23 | 0:27502d5825f7 | 277 | CS=1; |
dheerajmpai23 | 0:27502d5825f7 | 278 | wait_ms(2); |
dheerajmpai23 | 0:27502d5825f7 | 279 | int x = IRQ; |
dheerajmpai23 | 0:27502d5825f7 | 280 | while(1){ |
dheerajmpai23 | 0:27502d5825f7 | 281 | // cout<<"in While Loop"<<ENDL; |
dheerajmpai23 | 0:27502d5825f7 | 282 | cout<<x<<ENDL; |
dheerajmpai23 | 0:27502d5825f7 | 283 | IRQ.rise(&write_data); |
dheerajmpai23 | 1:8aeaa0b3c4e4 | 284 | IRQ.fall(&print); |
dheerajmpai23 | 0:27502d5825f7 | 285 | |
dheerajmpai23 | 0:27502d5825f7 | 286 | } |
dheerajmpai23 | 0:27502d5825f7 | 287 | |
dheerajmpai23 | 1:8aeaa0b3c4e4 | 288 | |
dheerajmpai23 | 0:27502d5825f7 | 289 | } |
dheerajmpai23 | 0:27502d5825f7 | 290 | |
dheerajmpai23 | 0:27502d5825f7 | 291 | |
dheerajmpai23 | 0:27502d5825f7 | 292 | int main() |
dheerajmpai23 | 0:27502d5825f7 | 293 | { |
dheerajmpai23 | 0:27502d5825f7 | 294 | // cout<<"in MAin"<<ENDL; |
dheerajmpai23 | 0:27502d5825f7 | 295 | adf.format(8,0); |
dheerajmpai23 | 0:27502d5825f7 | 296 | adf.frequency(1000000); |
dheerajmpai23 | 0:27502d5825f7 | 297 | bbram_write(); |
dheerajmpai23 | 0:27502d5825f7 | 298 | // cout<<"bbram written"<<ENDL; |
dheerajmpai23 | 0:27502d5825f7 | 299 | initiate(); |
dheerajmpai23 | 0:27502d5825f7 | 300 | // cout<<"Initiated to Rolling buffer mode"<<ENDL; |
dheerajmpai23 | 0:27502d5825f7 | 301 | send_data(); |
dheerajmpai23 | 0:27502d5825f7 | 302 | |
dheerajmpai23 | 0:27502d5825f7 | 303 | |
dheerajmpai23 | 0:27502d5825f7 | 304 | } |