1. He used to write programmes.
- In the past, he wrote programmes.
2. He is used to writing programmes.
- This sentence implies that he has written a lot of programmes, therefore he is (used to)/(familiar with) writing programmes.
That is just coming from a native american-english speaker. =P
One who hasn't actually studied his own language.
shrug