- Joined
- Jul 4, 2009
- Messages
- 16,236
- Helped
- 5,140
- Reputation
- 10,309
- Reaction score
- 5,122
- Trophy points
- 1,393
- Location
- Aberdyfi, West Wales, UK
- Activity points
- 137,409
I see Paulfjujo in the other forum tells you exactly the same thing. When you have the SPI LCD you will have to tell us what format the commands to it are so we can advise on the software you need to drive it.
Brian.
really I do not understand very well this question. As I saïd earlier, I am poor on this topic
View attachment 118232 -(SCL) is the clock signal
-(SI) ist the data signal
- (CSB) activation signal
so a standard SPI I meant
and Sorry for the misunderstanding
if(++count == 1200) {
and Usually 8 bit Microchip Port Expanders
Not so fast.... slow down...
The first thing to do is create a new project in MPLABX and copy the template file in to it. I'm assuming you are using Windows, the program is exactly the same in Linux and OSX but you may need to use different files and folder names.
1. open MPLABX and close the 'start' and 'store' windows.
2. click on 'File/New Project/Standalone project' then 'Next'.
3. click on 'Baseline 8-bit MCUs (PIC10/12/16)' and pick "PIC10F220" from the list, then 'Next'
4. select 'none' for the debug header then click 'Next'
5. in the 'select tool' menu, pick 'Simulator' then 'Next'
6. in 'Select compiler' pick 'mpasm (v5.62) [C:\Program Files\Microchip\MPLABX\v3.00\mpasmx]' then 'Next'
7. fill in 'Select Project Name and Folder' with a name and location to create the files. Leave 'Set as main project' checked and click 'Finish'
That sets up the IDE ready for your program.
Now we use a pre-built 'template' to make things easier.
8. click on 'File/New File' and in the 'Categories' select 'Assembler' then click 'Next'
9. change the file name to something more meaningful then click 'Finish'. This creates a blank source file for you.
10. Using the normal 'copy/paste', find the file called 'C:\Program Files\Microchip\MPLABX\v3.00\mpasmx\templates\Code\10F220TEMP.ASM' and copy it's entire contents to the MPLABX window.
Finally, click on the hammer icon 'Build Main Project' and it should create your first 10F220 program. It needs the extra code of course but let me know if you get that far.
Brian.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?